/* =========================================================
   Cora-Flow — gemeinsames Stylesheet
   Wird von index.html, impressum.html und datenschutz.html genutzt
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0c0e; --bg2: #111214; --bg3: #18191d;
  --border: rgba(255,255,255,0.07); --border-h: rgba(255,255,255,0.13);
  --text: #edeae4; --muted: #78766f; --muted2: #2e2d2a;
  --accent: #7eb8a4; --accent-b: #9dd4be;
  --accent-dim: rgba(126,184,164,0.1); --accent-dim2: rgba(126,184,164,0.05);
  --gold: #c8a96e;
  --green: #5dba8a; --green-dim: rgba(93,186,138,0.1);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Figtree', sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(126,184,164,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(126,184,164,0.015) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0; }

/* ---------- Nav (gemeinsam) ---------- */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 48px; display: flex; align-items: center; justify-content: space-between; background: rgba(11,12,14,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: background 0.3s, box-shadow 0.3s; }
nav.scrolled { background: rgba(11,12,14,0.97); box-shadow: 0 4px 32px rgba(0,0,0,0.45); border-bottom-color: rgba(255,255,255,0.1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; padding: 9px 7px; flex-shrink: 0; }
.nav-burger span { display: block; width: 18px; height: 1.5px; background: var(--muted); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-dim); border: 1px solid rgba(126,184,164,0.25); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 14px; }
.logo-text { font-family: var(--serif); font-size: 17px; color: var(--text); letter-spacing: -0.2px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #071a14; padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.nav-cta:hover { background: var(--accent-b); transform: translateY(-1px); }
.nav-back { font-size: 13px; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.nav-back:hover { color: var(--text); }

/* ---------- Hero (index) ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 130px 24px 90px; overflow: hidden; }
.hero .orb-a { width: 700px; height: 400px; background: rgba(126,184,164,0.05); top: 10%; left: 50%; transform: translateX(-50%); }
.hero .orb-b { width: 350px; height: 350px; background: rgba(200,169,110,0.04); bottom: 5%; right: 10%; }
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(126,184,164,0.2); background: var(--accent-dim2); border-radius: 100px; padding: 5px 14px 5px 8px; font-size: 12px; color: var(--accent); font-weight: 500; letter-spacing: 0.03em; margin-bottom: 36px; opacity: 0; animation: fadeUp 0.6s ease 0.1s forwards; }
.badge-dot { width: 20px; height: 20px; background: var(--green-dim); border: 1px solid rgba(93,186,138,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--green); }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 6.5vw, 76px); font-weight: 400; line-height: 1.08; letter-spacing: -1.5px; color: var(--text); margin-bottom: 28px; opacity: 0; animation: fadeUp 0.7s ease 0.2s forwards; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--muted); font-weight: 300; line-height: 1.75; max-width: 520px; margin: 0 auto 52px; opacity: 0; animation: fadeUp 0.7s ease 0.3s forwards; }
.hero-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto 16px; opacity: 0; animation: fadeUp 0.7s ease 0.4s forwards; }
.hero-input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; font-size: 14px; color: var(--text); font-family: var(--sans); outline: none; transition: border-color 0.2s; }
.hero-input::placeholder { color: #3a3835; }
.hero-input:focus { border-color: rgba(126,184,164,0.35); }
.hero-btn { background: var(--accent); color: #071a14; border: none; border-radius: 10px; padding: 13px 22px; font-size: 14px; font-weight: 600; font-family: var(--sans); cursor: pointer; white-space: nowrap; transition: background 0.2s, transform 0.15s; }
.hero-btn:hover { background: var(--accent-b); transform: translateY(-1px); }
.hero-note { font-size: 12px; color: var(--muted2); opacity: 0; animation: fadeUp 0.7s ease 0.5s forwards; }
.hero-note b { color: var(--green); font-weight: 500; }
.success-msg { display: none; align-items: center; gap: 6px; font-size: 13px; color: var(--green); justify-content: center; margin-top: 10px; }
.success-msg.show { display: flex; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Stats (index) ---------- */
.stats { position: relative; z-index: 1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); display: flex; }
.stat { flex: 1; padding: 28px 24px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
.stat-value { font-family: var(--serif); font-size: 36px; font-weight: 400; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- Sections (index) ---------- */
section { padding: 100px 24px; position: relative; }
.container { max-width: 1080px; margin: 0 auto; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
section > .container > h2,
section.cta h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 50px); font-weight: 400; line-height: 1.15; letter-spacing: -0.5px; color: var(--text); margin-bottom: 18px; }
section > .container > h2 em,
section.cta h2 em { font-style: italic; color: var(--accent); }
.sub { font-size: 17px; color: var(--muted); font-weight: 300; max-width: 500px; line-height: 1.7; margin-bottom: 56px; }

/* ---------- Problem (index) ---------- */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.problem { background: var(--bg2); padding: 32px 26px; transition: background 0.2s; }
.problem:hover { background: var(--bg3); }
.problem-num { font-family: var(--serif); font-size: 40px; color: var(--bg3); line-height: 1; margin-bottom: 16px; font-style: italic; }
.problem-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.problem-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- How it works (index) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 14%; right: 14%; height: 1px; background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent); }
.step { padding: 0 20px; text-align: center; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; color: var(--accent); margin: 0 auto 20px; position: relative; z-index: 1; }
.step-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- Flow demo (index) ---------- */
.flow-demo { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 40px; margin-top: 64px; position: relative; overflow: hidden; }
.flow-demo::before { content: ''; position: absolute; top: -60px; left: -60px; width: 300px; height: 300px; background: rgba(126,184,164,0.04); border-radius: 50%; filter: blur(60px); }
.flow-trigger-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.trigger-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.flow-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; z-index: 1; }
.flow-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: border-color 0.2s, transform 0.2s; }
.flow-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.flow-type { font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; display: inline-block; margin-bottom: 10px; }
.t-email { background: rgba(126,184,164,0.1); color: var(--accent); }
.t-wait  { background: rgba(160,160,220,0.1); color: #a0a0d4; }
.t-check { background: rgba(93,186,138,0.1); color: var(--green); }
.t-action{ background: rgba(200,100,100,0.1); color: #e07878; }
.t-notify{ background: rgba(100,160,240,0.1); color: #64a0f0; }
.flow-card-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.flow-card-desc { font-size: 12px; color: var(--muted); }

/* ---------- Integrations (index) ---------- */
.int-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.int-pill { display: flex; align-items: center; gap: 8px; background: var(--bg3); border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; font-size: 13px; color: var(--muted); transition: border-color 0.2s, color 0.2s; }
.int-pill:hover { border-color: var(--border-h); color: var(--text); }
.int-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.int-dot-lexoffice { background: #00a86b; }
.int-dot-slack     { background: #4a9eff; }
.int-dot-gmail     { background: #ea4335; }
.int-dot-gcal      { background: #0f9d58; }
.int-dot-jira      { background: #2684ff; }
.int-dot-notion    { background: #7b68ee; }
.int-dot-datev     { background: #ff6b35; }
.int-dot-webhooks  { background: #e44d26; }
.int-dot-more      { background: var(--muted); }

/* ---------- Features (index) ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; transition: border-color 0.2s, transform 0.2s; }
.feat:hover { border-color: var(--border-h); transform: translateY(-2px); }
.feat.wide { grid-column: span 2; background: linear-gradient(135deg, var(--bg2), rgba(126,184,164,0.04)); border-color: rgba(126,184,164,0.12); }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-dim); border: 1px solid rgba(126,184,164,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px; }
.feat-title { font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.feat-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- Pricing (index) ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 32px 26px; position: relative; transition: transform 0.2s; }
.price-card:hover { transform: translateY(-3px); }
.price-card.pop { border-color: rgba(126,184,164,0.3); background: linear-gradient(160deg, var(--bg3), rgba(126,184,164,0.06)); }
.pop-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #071a14; font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 14px; border-radius: 100px; white-space: nowrap; }
.price-plan { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.price-amount { font-family: var(--serif); font-size: 46px; font-weight: 400; color: var(--text); line-height: 1; margin-bottom: 6px; }
.price-amount span { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.price-who { font-size: 13px; color: var(--muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.price-list { list-style: none; }
.price-list li { font-size: 13px; color: var(--muted); padding: 5px 0; display: flex; align-items: flex-start; gap: 8px; }
.price-list li::before { content: '✓'; color: var(--green); font-size: 12px; margin-top: 1px; flex-shrink: 0; }
.price-list li.no::before { content: '—'; color: var(--muted2); }
.price-list li.no { color: var(--muted2); }
.price-btn { display: block; width: 100%; margin-top: 24px; padding: 13px; border-radius: 10px; font-size: 14px; font-weight: 600; font-family: var(--sans); text-align: center; cursor: pointer; text-decoration: none; border: none; transition: opacity 0.2s, transform 0.15s; }
.price-btn-p { background: var(--accent); color: #071a14; }
.price-btn-s { background: transparent; color: var(--text); border: 1px solid var(--border); }
.price-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------- CTA (index) ---------- */
.cta { text-align: center; padding: 120px 24px; position: relative; overflow: hidden; }
.cta .orb { width: 600px; height: 400px; background: rgba(126,184,164,0.05); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cta-inner { position: relative; z-index: 1; }
.cta h2 { max-width: 580px; margin: 0 auto 16px; }
.cta .sub { margin: 0 auto 48px; }
.cta .hero-form { opacity: 1; animation: none; }

/* ---------- Reveal animations (index) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Legal pages (impressum, datenschutz) ---------- */
main { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 120px 24px 100px; }

main .page-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
main h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 52px); font-weight: 400; line-height: 1.1; letter-spacing: -0.5px; color: var(--text); margin-bottom: 48px; }
main .last-updated { font-size: 13px; color: var(--muted); margin-bottom: 48px; }
/* Spezialfall datenschutz: h1 hat last-updated direkt darunter, weniger Abstand */
main h1 + .last-updated { margin-top: -40px; }

.card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 32px; margin-bottom: 16px; }
.card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
.card h2 { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--text); margin-bottom: 14px; }

.card p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card p a { color: var(--accent); text-decoration: none; }
.card p a:hover { text-decoration: underline; }

.card ul { margin: 8px 0 12px 0; padding-left: 0; list-style: none; }
.card ul li { font-size: 15px; color: var(--muted); line-height: 1.7; padding: 4px 0; display: flex; gap: 10px; align-items: flex-start; }
.card ul li::before { content: '–'; color: var(--accent); flex-shrink: 0; margin-top: 1px; }

.data-row { display: grid; grid-template-columns: 160px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.data-row:last-child { border-bottom: none; padding-bottom: 0; }
.data-key { font-size: 13px; color: var(--muted); }
.data-val { font-size: 13px; color: var(--text); }
.data-val.placeholder { color: var(--accent); font-style: italic; }
.data-val a { color: var(--accent); text-decoration: none; }
.data-val a:hover { text-decoration: underline; }

.hint { background: rgba(126,184,164,0.05); border: 1px solid rgba(126,184,164,0.15); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.hint b { color: var(--accent); font-weight: 500; }
.hint a { color: var(--accent); text-decoration: none; }
.hint a:hover { text-decoration: underline; }

/* ---------- TOC (datenschutz) ---------- */
.toc { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 24px 32px; margin-bottom: 32px; }
.toc-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { padding-left: 20px; }
.toc ol li { font-size: 14px; color: var(--muted); padding: 3px 0; }
.toc ol li a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.toc ol li a:hover { color: var(--accent); }

/* ---------- Footer (gemeinsam) ---------- */
footer { border-top: 1px solid var(--border); padding: 36px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; position: relative; z-index: 1; }
.footer-logo { font-family: var(--serif); font-size: 16px; color: var(--muted); }
.footer-nav { display: flex; gap: 24px; list-style: none; }
.footer-nav a { font-size: 13px; color: var(--muted); text-decoration: none; opacity: 0.5; transition: opacity 0.2s; }
.footer-nav a:hover { opacity: 1; }
.footer-copy { font-size: 12px; color: var(--muted); opacity: 0.4; }

/* ---------- Wiederverwendbare Inline-Ersatzklassen ---------- */
/* aus index.html: section style="background: var(--bg2);" */
.section-alt { background: var(--bg2); }
/* aus index.html: hero-form style="margin: 0 auto 12px;" */
.hero-form-cta { margin: 0 auto 12px; }
/* aus index.html: int-pill DATEV "Pro" Suffix */
.int-pill-suffix { font-size: 11px; color: var(--muted); margin-left: 4px; }
/* aus datenschutz.html: h2 mit margin-top: 20px */
.card h2.spaced { margin-top: 20px; }
/* aus datenschutz.html: ul li strong farbtext */
.card ul li strong { color: var(--text); }
/* aus datenschutz.html: p mit margin-top: 12px / 16px */
.card p.mt-12 { margin-top: 12px; }
.card p.mt-16 { margin-top: 16px; }
/* aus datenschutz.html: hint a inline color override (bereits oben generisch gelöst) */

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(11,12,14,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { font-size: 15px; padding: 12px 4px; display: block; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .hero { padding: 110px 20px 60px; }
  .hero-form { flex-direction: column; }
  .stats { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .problems { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .flow-cards { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feat.wide { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  section { padding: 64px 20px; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  main { padding: 100px 20px 80px; }
  .data-row { grid-template-columns: 1fr; gap: 2px; }
  footer { padding: 28px 20px; }
}
