/* sevmo — Corporate Identity
 *
 * Leitidee: „genau einmal gebucht". Die Seite borgt sich die Anmutung eines
 * Kontoauszugs — Papier, Linien, tabellarische Ziffern — und setzt genau einen
 * lauten Akzent: den Buchungsstempel in Violett. Alles andere bleibt leise.
 *
 * Keine externen Schriften (bewusste Entscheidung, siehe AGENTS.md).
 */

:root {
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --card: #ffffff;
  --ink: #1a1830;
  --ink-2: #413d5c;
  --muted: #6f6b83;
  --rule: #ded9d0;
  --rule-strong: #c5bfb2;
  --stamp: #4733a8;
  --stamp-ink: #3a2a88;
  --stamp-soft: #efecff;
  --stamp-bright: #a897ff;
  --credit: #1c6b4f;
  --debit: #9a2f3a;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 5px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2.5px solid var(--stamp);
  outline-offset: 3px;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); margin: 0; letter-spacing: -0.034em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 0 0 0.6em; }
h3 { font-size: 1.12rem; margin: 0 0 0.4em; letter-spacing: -0.012em; }
p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 99;
  padding: 0.7rem 1rem; background: var(--card); border: 1px solid var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Kopf ---------- */

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-lockup { width: 132px; height: auto; display: block; }
.brand-mark { width: 27px; height: 27px; flex: none; fill: currentColor; }
.brand-mark__bridge { fill: var(--stamp); }
.brand > span { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.04em; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { font-size: 0.92rem; font-weight: 550; text-decoration: none; color: var(--ink-2); }
.primary-nav a:hover { color: var(--stamp); }
.nav-cta {
  padding: 9px 17px; border-radius: 100px; background: var(--ink);
  color: var(--paper) !important; font-weight: 600;
}
.nav-cta:hover { background: var(--stamp); color: #fff !important; }

.nav-toggle { display: none; }

/* ---------- Schaltflächen ---------- */

.button {
  display: inline-block; padding: 14px 24px; border: 1px solid transparent;
  border-radius: 100px; font-size: 0.97rem; font-weight: 620; text-decoration: none;
  cursor: pointer; transition: background-color 0.16s ease, color 0.16s ease;
}
.button--primary { background: var(--stamp); color: #fff; }
.button--primary:hover { background: var(--stamp-ink); }
.button--secondary { background: transparent; border-color: var(--rule-strong); color: var(--ink); }
.button--secondary:hover { border-color: var(--ink); }
.button:disabled { opacity: 0.55; cursor: default; }

/* ---------- Held: der Kontoauszug ---------- */

.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 70px) var(--gutter) clamp(50px, 8vw, 96px);
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
.hero__lead { font-size: 1.16rem; color: var(--ink-2); max-width: 46ch; margin-top: 1.1em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.hero__note { margin-top: 1.4em; font-size: 0.87rem; color: var(--muted); }

/* Der Auszug selbst: weißes Blatt mit Linien und rechtsbündigen Beträgen. */
.ledger {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.ledger__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--rule);
}
.ledger__head b { font-size: 0.95rem; font-weight: 640; }
.ledger__head span { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

.ledger__rows { margin: 0; padding: 0; list-style: none; }
.ledger__rows li {
  display: grid; grid-template-columns: 4.6rem 1fr auto; gap: 14px; align-items: baseline;
  padding: 11px 20px; border-bottom: 1px solid var(--paper-2);
}
.ledger__rows li:last-child { border-bottom: 0; }
.ledger__rows time { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.ledger__rows p { margin: 0; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger__rows p small { display: block; font-size: 0.74rem; color: var(--muted); }
.ledger__rows b {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 0.86rem; font-weight: 600; white-space: nowrap;
}
.ledger__rows .credit { color: var(--credit); }
.ledger__rows .debit { color: var(--debit); }
.ledger__rows li[data-open] { background: var(--paper); }
/* Die Trennlinie zwischen dem übertragenen Block und dem Neuen ist die
   eigentliche Aussage der Tabelle — deshalb kräftiger als die übrigen Zeilen. */
.ledger__rows li:not([data-open]) + li[data-open] { border-top: 1px dashed var(--rule-strong); }
.ledger__rows li[data-open] p { color: var(--ink-2); }

.ledger__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 20px; border-top: 1px solid var(--rule); background: var(--paper);
  font-size: 0.83rem; color: var(--muted);
}
.ledger__foot b { color: var(--ink); font-weight: 620; }

/* Der eine laute Moment der ganzen Seite. */
.stamp {
  /* Sitzt in der freien Spalte zwischen Verwendungszweck und Betrag, damit er
     keine Zahl verdeckt — ein Stempel über einem Betrag wäre im Kontoauszug ein
     Fehler, nicht Deko. */
  position: absolute; top: 122px; left: 52%; right: auto;
  padding: 9px 15px 7px;
  border: 2.5px solid var(--stamp);
  border-radius: 4px;
  color: var(--stamp);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  opacity: 0.88;
  pointer-events: none;
}
.stamp span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.04em; text-transform: none; }

.mock-disclaimer { margin-top: 14px; font-size: 0.78rem; color: var(--muted); }

/* ---------- Laufband ---------- */

.band { background: var(--ink); color: var(--paper); }
.band__inner {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px;
  font-size: 0.93rem;
}
.band__inner b { font-weight: 640; }
.band__inner ul { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; color: #cfc8ef; }
.band__inner li { position: relative; padding-left: 16px; }
.band__inner li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--stamp-bright);
}

/* ---------- Abschnitte allgemein ---------- */

section { scroll-margin-top: 24px; }
.section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.section:last-of-type { border-bottom: 0; }
.section__intro { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 50px); }
.section__intro p { color: var(--ink-2); font-size: 1.05rem; }
.section-kicker, .eyebrow { margin: 0 0 0.8em; font-size: 0.93rem; font-weight: 640; color: var(--stamp); }

/* ---------- Die zwei Wege ---------- */

.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.route {
  padding: 26px 26px 28px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.route--api { background: var(--stamp-soft); border-color: #d9d1ff; }
.route__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.route__top h3 { margin: 0; }
.route__fit { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.route p { font-size: 0.96rem; color: var(--ink-2); }
.route ul { margin: 0 0 18px; padding: 0; list-style: none; }
.route li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 0.93rem; }
.route__note {
  margin-top: auto; padding-top: 16px;
  font-size: 0.87rem; color: var(--ink-2);
}
.route--api .route__note { color: var(--stamp-ink); font-weight: 560; }

/* ---------- Karten, Grundsätze ---------- */

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 30px 34px; }
/* Vier Grundsätze sollen 2x2 oder 4x1 stehen, nicht 3 + ein Waisenkind. */
.cols--four { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.cols article h3 { margin-bottom: 0.35em; }
.cols article p { font-size: 0.95rem; color: var(--ink-2); margin: 0; }
.cols--ruled article { padding-top: 18px; border-top: 2px solid var(--ink); }
.cols--ruled article:nth-child(2) { border-top-color: var(--stamp); }

/* ---------- Preis ---------- */

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: clamp(30px, 5vw, 60px); align-items: start; }
.pricing-card {
  padding: 28px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
}
.pricing-card__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.pricing-card__price strong { font-size: 3.1rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.pricing-card__price span { color: #b3abd9; font-size: 0.92rem; }
.pricing-card ul { margin: 0 0 22px; padding: 0; list-style: none; }
.pricing-card li { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.93rem; color: #ded9f5; }
.pricing-card .button { width: 100%; text-align: center; }
.pricing-card__code {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px;
  padding: 12px 14px; border: 1px dashed var(--stamp-bright); border-radius: 4px;
}
.pricing-card__code b { font-family: var(--mono); font-size: 0.95rem; color: var(--stamp-bright); }
.pricing-card__code span { font-size: 0.8rem; color: #b3abd9; }
.pricing-card__status { margin: 12px 0 0; font-size: 0.85rem; color: #ded9f5; }

/* ---------- Ablauf (echte Reihenfolge, deshalb nummeriert) ---------- */

.flow { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.flow li {
  display: grid; grid-template-columns: 3rem 1fr; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.flow li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.95rem; color: var(--stamp);
}
.flow h3 { margin-bottom: 0.3em; }
.flow p { margin: 0; font-size: 0.96rem; color: var(--ink-2); }

/* ---------- Roadmap ---------- */

.roadmap { margin: 0; padding: 0; list-style: none; }
.roadmap li { padding: 24px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 20px; align-items: start; }
.roadmap__when { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); padding-top: 0.25em; }
.roadmap__state { font-size: 0.78rem; font-weight: 640; color: var(--muted); padding-top: 0.3em; }
.roadmap li[data-state="live"] .roadmap__state { color: var(--credit); }
.roadmap p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Kontakt ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-form label { display: block; margin-bottom: 16px; }
.contact-form label > span { display: block; margin-bottom: 6px; font-size: 0.87rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 13px; background: var(--card);
  border: 1px solid var(--rule-strong); border-radius: 4px;
}
.contact-form textarea { resize: vertical; }
.contact-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; }
.contact-form__trap { position: absolute; left: -9999px; }
.contact-form__turnstile { margin-bottom: 16px; }
.contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.contact-form__footer p { margin: 0; max-width: 42ch; font-size: 0.83rem; color: var(--muted); }
.contact-form__status { margin: 14px 0 0; font-size: 0.9rem; }

/* ---------- Fuß ---------- */

.site-footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(40px, 6vw, 62px) var(--gutter);
}
.site-footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 40px; align-items: start;
}
.site-footer p { font-size: 0.86rem; color: #b3abd9; }
.site-footer .brand { color: var(--paper); }
.site-footer .brand-mark__bridge { fill: var(--stamp-bright); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; }
.legal-nav a { font-size: 0.88rem; color: var(--paper); text-underline-offset: 3px; }
.site-footer__bottom {
  max-width: var(--max); margin: 30px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem; color: #9b93c4;
}

/* ---------- Rechtsseiten, Kauf, Fehler ---------- */

.legal-page { max-width: 880px; margin: 0 auto; padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(60px, 8vw, 110px); min-height: 68vh; }
.legal-page__header { padding-bottom: 34px; border-bottom: 1px solid var(--rule); }
.legal-page__header > p:last-child { color: var(--muted); }
.legal-content section { padding: 30px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 200px 1fr; gap: 34px; }
.legal-content h2 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.legal-content p { margin-top: 0; }
.legal-content address { font-style: normal; }
.legal-content a { text-underline-offset: 3px; }
.legal-note, .legal-brand-note { color: var(--muted); font-size: 0.9rem; }

.checkout-result, .error-page {
  max-width: 760px; margin: 0 auto; padding: clamp(50px, 9vw, 120px) var(--gutter);
  min-height: 62vh;
}
.checkout-result h1, .error-page h1 { margin-bottom: 0.4em; }
.checkout-result p, .error-page p { font-size: 1.06rem; color: var(--ink-2); }
.closing { margin-top: 2em; }

/* ---------- Klein ---------- */

@media (max-width: 900px) {
  .hero, .pricing, .contact, .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .legal-content section { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .roadmap li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .roadmap__state { padding-top: 0; }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 38px; padding: 0 9px;
    background: transparent; border: 1px solid var(--rule-strong); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span[aria-hidden] { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .primary-nav {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 78px; z-index: 30;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  }
  .primary-nav[data-open] { display: flex; }
  .primary-nav a { padding: 10px 12px; }
  .nav-cta { text-align: center; }
  .site-header { position: relative; }
  .stamp { top: 112px; left: 32%; right: auto; }
  .ledger__rows li { grid-template-columns: 4rem 1fr auto; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
