/* ============================================================
   MarkForge — Design System
   Warmes Paper / Editorial-Serif + Mono / Akzent Signal-Orange
   Kein Lila-Gradient, kein Glassmorphism, keine KI-Template-Optik.
   ============================================================ */

:root {
  --paper: #F4F1EA;
  --paper-2: #ECE8DE;
  --ink: #17150F;
  --ink-2: #4A463C;
  --ink-3: #837D6E;
  --line: #D8D2C2;
  --accent: #E8480C;
  --accent-deep: #B93505;
  --accent-soft: #FBDFD3;
  --ok: #1E7A46;
  --ok-soft: #DCEFE2;
  --warn: #9A6206;
  --warn-soft: #F6EAD1;
  --card: #FBFAF6;
  --radius: 10px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shadow: 0 1px 2px rgba(23,21,15,.05), 0 10px 34px -18px rgba(23,21,15,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

/* feines Papierraster als Textur */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(23,21,15,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,21,15,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 60%);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 560; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.18rem; font-family: var(--font-sans); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); font-size: .82em; word-break: break-all; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 58ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: none;
  background: transparent;
  transition: background .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(244,241,234,.92); border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(23,21,15,.4); }
.header-in { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550; }
.site-nav a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .98rem var(--font-sans);
  padding: 13px 22px; border-radius: 8px;
  border: 1.5px solid var(--ink); cursor: pointer;
  text-decoration: none; transition: transform .12s, box-shadow .12s, background .15s;
  background: var(--ink); color: var(--paper);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(23,21,15,.5); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn-spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vh, 110px) 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 .u { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.hero-actions { display: flex; gap: 14px; margin: 26px 0 18px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-proof div { font-size: .88rem; color: var(--ink-2); }
.hero-proof strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); font-weight: 600; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.1; object-fit: cover; }
.hero-figure figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(23,21,15,.82); color: #EFECE4;
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.5;
  padding: 12px 14px; border-radius: 6px; backdrop-filter: blur(4px);
  white-space: pre-wrap;
}
.hero-figure figcaption b { color: #FFB59B; font-weight: 500; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; margin: 40px 0 0; }
.ticker-in { display: flex; gap: 0; white-space: nowrap; animation: tick 30s linear infinite; padding: 11px 0; }
.ticker span { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--ink-2); padding: 0 26px; border-right: 1px solid var(--line); }
.ticker b { color: var(--accent-deep); font-weight: 500; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vh, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 60px); }

/* Problem — Editorial Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--card); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 26px; font-size: .95rem;
}
.callout b { color: var(--accent-deep); }

/* So funktioniert's — nummerierte Zeilen statt Icon-Karten */
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: 1rem; color: var(--accent-deep);
}
.step p { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* ---------- App / Tool ---------- */
.app-shell {
  background: var(--ink); color: #EFECE4;
  border-radius: 18px; padding: clamp(24px, 4vw, 52px);
  box-shadow: 0 30px 80px -30px rgba(23,21,15,.55);
}
.app-shell h2 { color: #F7F4EC; }
.app-shell .lead { color: #B9B4A6; }
.mode-tabs { display: inline-flex; background: rgba(255,255,255,.07); border-radius: 10px; padding: 5px; gap: 5px; margin-bottom: 30px; }
.mode-tab {
  font: 600 .95rem var(--font-sans); color: #B9B4A6;
  background: transparent; border: 0; border-radius: 7px;
  padding: 11px 26px; cursor: pointer; transition: all .15s;
}
.mode-tab.is-active { background: var(--accent); color: #fff; }

.dropzone {
  border: 2px dashed rgba(239,236,228,.35); border-radius: var(--radius);
  padding: clamp(34px, 6vw, 60px); text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: rgba(232,72,12,.08); }
.dropzone .dz-title { font-family: var(--font-serif); font-size: 1.4rem; color: #F7F4EC; margin-bottom: 6px; }
.dropzone .dz-sub { color: #9D9889; font-size: .9rem; }
.dropzone .dz-formats { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: .72rem; border: 1px solid rgba(239,236,228,.3); border-radius: 99px; padding: 4px 12px; color: #CFCABB; }

.file-info {
  margin-top: 16px; padding: 13px 18px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(239,236,228,.2);
  font-size: .95rem;
}
.app-form { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.app-form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9D9889; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(239,236,228,.25); background: rgba(255,255,255,.05);
  color: #F7F4EC; font: 500 .98rem var(--font-sans);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field select option { color: #17150F; }
.form-foot { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-foot .fine { margin: 0; }

.fine { font-size: .83rem; color: #9D9889; }
.app-shell .fine a { color: #FFB59B; }

.result-card {
  margin-top: 26px; border-radius: var(--radius); padding: 26px 28px;
  background: var(--card); color: var(--ink);
  border-top: 5px solid var(--ok);
}
.result-warn { border-top-color: var(--warn); }
.result-error { border-top-color: var(--accent); }
.result-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.result-head h3 { margin: 0; }
.result-badge {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ok-soft); color: var(--ok); padding: 5px 12px; border-radius: 99px; white-space: nowrap;
}
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.kv { margin: 0 0 14px; display: grid; gap: 10px; }
.kv > div { display: grid; grid-template-columns: 210px 1fr; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-3); font-size: .88rem; }
.kv dd { margin: 0; font-size: .95rem; }
.kv em { color: var(--ink-3); font-style: normal; font-size: .85em; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.result-card .fine { color: var(--ink-3); margin-top: 14px; }

/* ---------- Technik-Tabelle ---------- */
.tech-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tech-table th, .tech-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tech-table th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.tech-table td:first-child { font-weight: 650; white-space: nowrap; }
.tech-table .mono { color: var(--accent-deep); }
.tech-note { margin-top: 18px; font-size: .88rem; color: var(--ink-2); }

/* ---------- Credits / Preise ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; position: relative;
}
.price-card.is-featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.price-card .tag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font: 600 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.price-card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.price { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; margin: 8px 0 2px; }
.price small { font-family: var(--font-sans); font-size: .9rem; color: var(--ink-3); font-weight: 500; }
.price-card ul { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; font-size: .93rem; color: var(--ink-2); flex: 1; }
.price-card li { padding-left: 24px; position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { justify-content: center; }
.credits-explainer { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.credits-explainer > div { border-top: 2px solid var(--ink); padding-top: 16px; font-size: .92rem; color: var(--ink-2); }
.credits-explainer b { color: var(--ink); display: block; margin-bottom: 4px; font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 22px 0; font-weight: 650; font-size: 1.06rem;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--accent-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 65ch; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 4vw, 56px); align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { color: #F7F4EC; }
.cta-band p { color: #B9B4A6; }
.cta-band img { border-radius: var(--radius); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; height: 100%; max-height: 380px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 34px; margin-top: clamp(64px, 10vh, 120px); background: var(--paper-2); }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-in nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-in nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.footer-legal { margin-top: 26px; font-size: .82rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- Utilities ---------- */
.is-hidden { display: none !important; }
/* Reveal-Animation: sanft einblenden, aber niemals verstecken,
   wenn JS/Observer nicht feuert (Screenshots, Print, Crawler). */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-in { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split, .cta-band { grid-template-columns: 1fr; }
  .step { grid-template-columns: 54px 1fr; }
  .step p { grid-column: 2; }
  .price-grid, .credits-explainer { grid-template-columns: 1fr; }
  .app-form { grid-template-columns: 1fr; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .site-nav { display: none; }
  .tech-table { display: block; overflow-x: auto; }
}
