/* Versino brand system — mirrors versino.de so the shop feels native.
   Font: Titillium Web. Primary CTA: navy #003366. Accent: teal #15779b, red #C8102E. */

:root {
  --navy: #003366;
  --navy-dark: #002347;
  --teal: #15779b;
  --teal-dark: #11607d;
  --red: #c8102e;
  --ink: #2b2b2b;
  --body: #333333;
  --muted: #757575;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --bg-softer: #eef1f4;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(0, 51, 102, .06), 0 1px 3px rgba(0, 51, 102, .08);
  --shadow-md: 0 6px 24px rgba(0, 51, 102, .10);
  --maxw: 1120px;
  --font: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
code { background: var(--bg-softer); padding: .12em .4em; border-radius: 3px; font-size: .9em; word-break: break-all; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; display: block; }
.brand .ctx {
  font-size: .82rem; font-weight: 600; color: var(--muted);
  padding-left: 12px; border-left: 1px solid var(--line); letter-spacing: .01em;
}
.mainnav { display: flex; align-items: center; gap: 26px; }
.mainnav a {
  color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: 6px 0; position: relative;
}
.mainnav a:hover { color: var(--teal-dark); }
.mainnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.mainnav a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .mainnav { display: none; }
  .site-header .bar { height: 64px; }
}

/* ── Buttons (matches versino.de .btn / .btn-primary) ────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; font-family: var(--font); font-size: 1rem; font-weight: 600;
  line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: all .25s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 51, 102, .25); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-danger { background: #fff; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ── Main / layout ───────────────────────────────────────────────────────── */
main { flex: 1 0 auto; }
.section { padding: 56px 0; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }

/* ── Hero (shop) ─────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 360px at 88% -10%, rgba(21, 119, 155, .10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .25; mask-image: radial-gradient(600px 300px at 80% 0%, #000, transparent 70%);
  pointer-events: none;
}
.hero > .container > * { position: relative; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; gap: 32px; } }

.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding: 6px 0 6px 30px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px;
}
.card.elevated { box-shadow: var(--shadow-md); }
.pricing-card { border-top: 4px solid var(--navy); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.price .amount { font-size: 3rem; font-weight: 700; color: var(--ink); line-height: 1; }
.price .per { color: var(--muted); font-weight: 600; }
.badge {
  display: inline-block; background: var(--bg-softer); color: var(--teal-dark);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field { margin-bottom: 16px; }
input, select {
  width: 100%; padding: 11px 13px; font-family: var(--font); font-size: 1rem;
  color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21, 119, 155, .15); }
.stepper { display: flex; align-items: stretch; max-width: 200px; }
.stepper button {
  width: 46px; border: 1.5px solid var(--line); background: var(--bg-soft);
  font-size: 1.3rem; font-weight: 700; color: var(--navy); cursor: pointer; border-radius: var(--radius);
}
.stepper button:hover { background: var(--bg-softer); }
.stepper input { text-align: center; border-radius: 0; border-left: 0; border-right: 0; }
.help { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.total-row .big { font-size: 1.6rem; font-weight: 700; color: var(--navy); }

/* Edition selector — selectable tier cards (custom radio, no raw browser dots) */
.tier-options { display: grid; gap: 10px; }
.tier {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 14px;
  margin: 0;                       /* override generic label margin */
  padding: 13px 16px;
  font-weight: 400;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.tier:hover { border-color: var(--teal); }
/* native input hidden but accessible (label click + keyboard still work) */
.tier input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tier-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); display: inline-grid; place-items: center;
  transition: border-color .15s ease;
}
.tier-dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); transform: scale(0); transition: transform .15s ease;
}
.tier-text { display: grid; gap: 2px; }
.tier-name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.tier-desc { font-size: .82rem; color: var(--muted); }
.tier-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; vertical-align: middle;
  font-size: .65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--teal); border-radius: 999px;
}
.tier-price { font-weight: 700; color: var(--navy); white-space: nowrap; text-align: right; }
.tier-price small { display: block; font-weight: 600; color: var(--muted); font-size: .68rem; }
/* selected state */
.tier:has(input:checked) {
  border-color: var(--navy);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}
.tier:has(input:checked) .tier-dot { border-color: var(--teal); }
.tier:has(input:checked) .tier-dot::after { transform: scale(1); }
/* keyboard focus ring on the card */
.tier:focus-within { outline: none; box-shadow: 0 0 0 3px rgba(21, 119, 155, .25); border-color: var(--teal); }
@media (prefers-reduced-motion: reduce) {
  .tier, .tier-dot, .tier-dot::after { transition: none; }
}

/* ─── Success / status marks ────────────────────────────────────────────── */
.success-mark, .warn-mark {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; color: #fff;
}
.success-mark { background: var(--teal); box-shadow: 0 8px 24px rgba(21, 119, 155, .28); }
.warn-mark { background: var(--red); box-shadow: 0 8px 24px rgba(200, 16, 46, .25); }

/* ─── License-key card (copy-to-clipboard) ──────────────────────────────── */
.keycard {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-soft), #fff);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.keycard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.keycard-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-dark);
}
.keycard-edition {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--navy); border-radius: 999px; padding: 2px 10px;
}
.keycard-body {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch;
  margin-top: 12px;
}
.keycard-token {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: .82rem; line-height: 1.5; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; overflow-wrap: anywhere; word-break: break-all;
  max-height: 132px; overflow-y: auto;
}
.keycard-copy { white-space: nowrap; align-self: start; }
.keycard-copy.is-copied { background: var(--teal-dark); border-color: var(--teal-dark); }
.keycard-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
}
.keycard-meta dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.keycard-meta dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
@media (max-width: 540px) {
  .keycard-body { grid-template-columns: 1fr; }
  .keycard-meta { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Tables (admin) ──────────────────────────────────────────────────────── */
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-soft); color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:hover { background: var(--bg-soft); }

.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill.active { background: #e3f3ea; color: #1c7a44; }
.pill.revoked { background: #fbe4e7; color: var(--red); }
.pill.suspended { background: #fcf2dd; color: #9a6a12; }
.pill.expired { background: var(--bg-softer); color: var(--muted); }

.notice { border-left: 4px solid var(--teal); background: var(--bg-soft); padding: 14px 18px; border-radius: var(--radius); margin: 0 0 20px; }
.notice.warn { border-color: #d8a200; background: #fcf6e8; }
.token-box { background: var(--ink); color: #d8e6f0; padding: 16px; border-radius: var(--radius); font-family: "Courier New", monospace; font-size: .82rem; word-break: break-all; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 10px; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* ── Footer (mirrors versino.de) ─────────────────────────────────────────── */
.site-footer { flex-shrink: 0; background: var(--ink); color: #c7ccd2; margin-top: 64px; }
.site-footer .container { padding-top: 44px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #c7ccd2; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-logo { height: 34px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8b939c; }

/* Page-load reveal */
.reveal { opacity: 0; transform: translateY(12px); animation: rise .6s cubic-bezier(.2, .7, .3, 1) forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ─── Term toggle (Monatlich/Jährlich) ──────────────────────────────────── */
.term-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.term {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
  cursor: pointer; font-weight: 600; color: var(--ink); background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.term:hover { border-color: var(--teal); }
.term input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.term:has(input:checked) { border-color: var(--navy); background: var(--bg-soft); box-shadow: var(--shadow-sm); }
.term:focus-within { outline: none; box-shadow: 0 0 0 3px rgba(21, 119, 155, .25); border-color: var(--teal); }
.term-save {
  font-size: .72rem; font-weight: 700; color: #fff; background: var(--teal);
  border-radius: 999px; padding: 1px 7px;
}

/* ─── Feature comparison table ───────────────────────────────────────────── */
.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;
}
.table-scroll { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.compare th, .compare td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: #fff; font-weight: 700; text-align: center; }
.compare thead th:first-child { text-align: left; }
.compare tbody th[scope="row"] { font-weight: 600; color: var(--ink); text-align: left; }
.compare tbody td { text-align: center; }
.compare tbody tr:nth-child(even) { background: var(--bg-soft); }
.compare code { font-size: .85em; }
.compare .yes { color: var(--teal-dark); font-weight: 700; }
.compare .no { color: var(--muted); }

/* ─── FAQ / disclosures ──────────────────────────────────────────────────── */
.faq { display: grid; gap: 8px; margin-top: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--ink); }
.faq summary:hover { color: var(--teal-dark); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 12px 14px; color: var(--body); }
@media (prefers-reduced-motion: reduce) { .term { transition: none; } }
