/* ==========================================================================
   Quadra – dunkel & edel
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Serif Display"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("../fonts/lora-var.woff") format("woff"); }
@font-face { font-family: "Serif Display"; font-weight: 400 700; font-style: italic; font-display: swap; src: url("../fonts/lora-italic-var.woff") format("woff"); }

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-2: #0f0f13;
  --surface: #131318;
  --surface-2: #1a1a21;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .17);
  --text: #ece8df;
  --muted: #a09c91;
  --faint: #77746b;
  --gold: #c9a96b;
  --gold-hi: #e4d09c;
  --gold-lo: #a98a4e;
  --gold-tint: rgba(201, 169, 107, .12);
  --danger: #e57f73;
  --danger-tint: rgba(229, 127, 115, .12);
  --ok: #7fc59b;
  --ok-tint: rgba(127, 197, 155, .12);
  --warn: #e3bd6c;
  --warn-tint: rgba(227, 189, 108, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Serif Display", "Iowan Old Style", Georgia, serif;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(201, 169, 107, .10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.main { flex: 1; padding-block: 40px 72px; }
.main-site { padding-block: 0 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.1rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
a { color: var(--gold-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .45em; color: var(--gold-hi); word-break: break-all; }
small { font-size: .7em; font-weight: 400; color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: #17120a; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.hint { color: var(--faint); font-size: .86rem; margin: .45em 0 0; }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #17120a; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.eyebrow { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 .7em; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-plain { position: static; background: transparent; border-bottom: 0; backdrop-filter: none; }
.topbar-in { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: .01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; color: var(--gold); flex: none; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.inline-form { display: inline; margin: 0; }
.pill { display: inline-block; font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201, 169, 107, .4); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #1a1409; box-shadow: 0 6px 22px -8px rgba(201, 169, 107, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { color: #1a1409; filter: brightness(1.07); box-shadow: 0 10px 28px -8px rgba(201, 169, 107, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: #fff; border-color: var(--gold); background: var(--gold-tint); }
.btn-danger { background: var(--danger-tint); color: var(--danger); border-color: rgba(229, 127, 115, .35); }
.btn-danger:hover { color: #fff; background: rgba(229, 127, 115, .28); border-color: var(--danger); }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; padding-block: 15px; }
.btn.is-disabled, .btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--gold-hi); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #fff; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 0; }
.field label, label.lbl { font-size: .86rem; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: var(--faint); }
input:hover, select:hover { border-color: rgba(255, 255, 255, .28); }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); background: #0c0c10; }
input[aria-invalid="true"] { border-color: var(--danger); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.field-error { color: var(--danger); font-size: .86rem; margin: .45em 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.row > .btn { width: 100%; }
.inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 14px; }
.inline-row .muted { font-size: .88rem; }
.danger-zone { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.searchbar { display: flex; gap: 10px; max-width: 520px; margin-bottom: 22px; }
.searchbar input { flex: 1; }

/* ---------- Hinweise ---------- */
.flash { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 16px; margin: 0 0 20px; font-size: .94rem; background: var(--surface); }
.flash-ok { border-color: rgba(127, 197, 155, .4); background: var(--ok-tint); color: #c9eed9; }
.flash-error { border-color: rgba(229, 127, 115, .45); background: var(--danger-tint); color: #ffd3cd; }
.flash-warn { border-color: rgba(227, 189, 108, .45); background: var(--warn-tint); color: #f5e1b5; }
.flash-info { border-color: rgba(201, 169, 107, .35); background: var(--gold-tint); color: var(--text); }
.flash a { color: inherit; }
.main-app .wrap > .flash, .main-admin .wrap > .flash { margin-bottom: 24px; }
.auth-flash { max-width: 440px; margin: 0 auto 8px; padding-inline: 20px; }

/* ---------- Auth-Seiten ---------- */
.shell-auth .main { display: grid; align-items: start; padding-block: 28px 64px; }
.auth-wrap { display: grid; place-items: center; padding: 0 20px; }
.auth-card { width: 100%; max-width: 440px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 38px); box-shadow: var(--shadow); }
.auth-card.wide { max-width: 560px; }
.auth-card h1 { font-size: 2rem; }
.auth-card .form { margin-top: 24px; }
.auth-links { margin: 22px 0 0; color: var(--muted); font-size: .92rem; text-align: center; }
.auth-links span { margin-inline: 4px; }
.checks { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.checks li { display: flex; align-items: baseline; gap: 12px; }
.check-state { flex: none; min-width: 52px; text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; }
.check-ok .check-state { color: var(--ok); background: var(--ok-tint); }
.check-fail .check-state { color: var(--danger); background: var(--danger-tint); }
.check-warn .check-state { color: var(--warn); background: var(--warn-tint); }

/* ---------- App-Gerüst ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.crumbs { margin: 0 0 14px; font-size: .9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); margin-bottom: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.card h2 { font-size: 1.3rem; }
.card-danger { border-color: rgba(229, 127, 115, .25); }
.empty { text-align: center; padding-block: 56px; }
.stack { display: grid; gap: 0; align-content: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two-col .card { margin: 0; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.summary-5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.summary-tight { margin-bottom: 18px; gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 6px; }
.stat-label { font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.stat-value { font-family: var(--font-display); font-size: 1.85rem; line-height: 1.1; color: var(--text); }
.stat-small { font-family: var(--font-body); font-size: .98rem; font-weight: 500; }

progress { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; }
progress::-webkit-progress-bar { background: rgba(255, 255, 255, .09); border-radius: 999px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); border-radius: 999px; }

.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; border-radius: 999px; padding: 3px 11px; white-space: nowrap; border: 1px solid transparent; }
.badge-lg { font-size: .82rem; padding: 6px 15px; }
.badge-ok { color: var(--ok); background: var(--ok-tint); border-color: rgba(127, 197, 155, .3); }
.badge-warn { color: var(--warn); background: var(--warn-tint); border-color: rgba(227, 189, 108, .3); }
.badge-off { color: var(--danger); background: var(--danger-tint); border-color: rgba(229, 127, 115, .3); }

/* Code-Karten */
.code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 18px; }
.code-card { display: grid; grid-template-columns: 96px 1fr; gap: 20px; margin: 0; align-items: start; transition: border-color .2s, transform .2s; }
.code-card:hover { border-color: rgba(201, 169, 107, .4); }
.qr-thumb { display: block; background: #fff; border-radius: 10px; padding: 6px; width: 96px; height: 96px; }
.qr-thumb span, .qr-thumb svg { display: block; width: 100%; height: 100%; }
.code-card-body { min-width: 0; }
.code-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.code-card h2 { font-size: 1.12rem; margin: 0 0 4px; }
.code-card h2 a { color: var(--text); text-decoration: none; }
.code-card h2 a:hover { color: var(--gold-hi); }
.target { color: var(--muted); font-size: .86rem; margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { margin: 0 0 4px; font-size: .84rem; color: var(--muted); }
.meta-url { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 8px; }
.meta-url code { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.meta-url .link-btn { flex: none; }
.meta strong { color: var(--text); }

/* Detailseite */
.detail-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 24px; align-items: start; }
.qr-card { position: sticky; top: 90px; margin: 0; }
.qr-stage { display: grid; place-items: center; padding: 8px 0 18px; }
.qr-box { background: #fff; border-radius: 18px; padding: 14px; width: min(100%, 300px); aspect-ratio: 1; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 22px 60px -20px rgba(201, 169, 107, .35); }
.qr-box svg { display: block; width: 100%; height: 100%; }
.short-url { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 8px 8px 12px; }
.short-url code { background: none; border: 0; padding: 0; font-size: .82rem; }
.chart { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.bar { fill: var(--gold); }
.bar:hover { fill: var(--gold-hi); }
.bar-zero { fill: rgba(255, 255, 255, .08); }
.chart-grid { stroke: var(--line-strong); stroke-width: 1; }
.chart-label { fill: var(--faint); font-size: 11px; font-family: var(--font-body); }
.bars { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 110px 1fr 40px; gap: 12px; align-items: center; font-size: .9rem; }
.bars-label { color: var(--muted); }
.bars-n { text-align: right; font-variant-numeric: tabular-nums; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.list { list-style: none; padding: 0; margin: 0 0 14px; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.list-end { text-align: right; flex: none; }

/* Tabellen */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line-strong); background: var(--bg-2); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.cell-url { max-width: 260px; word-break: break-all; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
.limit-form { display: inline-flex; gap: 6px; align-items: center; }
.limit-form input { width: 84px; padding: 8px 10px; font-size: .86rem; }

/* ---------- Fusszeile ---------- */
.footer { border-top: 1px solid var(--line); color: var(--faint); font-size: .86rem; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ==========================================================================
   Landingpage
   ========================================================================== */
.hero { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 100px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(201, 169, 107, .16), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--gold-hi); font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: 2em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin: 20px 0 0; font-size: .86rem; color: var(--faint); }

.device { position: relative; justify-self: center; width: min(100%, 360px); }
.device-card { background: linear-gradient(180deg, #17171d, #0f0f13); border: 1px solid var(--line-strong); border-radius: 28px; padding: 22px; box-shadow: var(--shadow), 0 0 0 1px rgba(201, 169, 107, .08); transform: rotate(2.2deg); }
.device-qr { background: #fff; border-radius: 18px; padding: 14px; aspect-ratio: 1; }
.device-qr span, .device-qr svg { display: block; width: 100%; height: 100%; }
.device-rows { margin-top: 18px; display: grid; gap: 10px; font-size: .84rem; }
.device-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; }
.device-row b { font-weight: 500; color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.device-row code { background: none; border: 0; padding: 0; }
.swap { position: relative; display: block; height: 1.4em; min-width: 11em; text-align: right; }
.swap span { position: absolute; right: 0; top: 0; color: var(--gold-hi); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86em; animation: swapA 8s infinite; white-space: nowrap; }
.swap span:last-child { animation-name: swapB; }
@keyframes swapA { 0%, 42% { opacity: 1; transform: none; } 50%, 92% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes swapB { 0%, 42% { opacity: 0; transform: translateY(6px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }
.device-badge { position: absolute; right: -12px; bottom: -18px; background: var(--surface-2); border: 1px solid rgba(201, 169, 107, .45); color: var(--gold-hi); font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow); transform: rotate(-3deg); }

.section { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.step h3 { margin-top: 0; font-size: 1.25rem; }
.step p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feature { background: var(--bg); padding: 32px 28px; }
.feature:hover { background: var(--surface); }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-hi); margin-bottom: 18px; border: 1px solid rgba(201, 169, 107, .25); }
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 .4em; font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; }
.plan { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; display: flex; flex-direction: column; }
.plan-featured { border-color: rgba(201, 169, 107, .5); box-shadow: 0 0 0 1px rgba(201, 169, 107, .12), 0 30px 70px -30px rgba(201, 169, 107, .25); }
.plan h3 { margin: 0 0 6px; }
.plan-price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; margin: 12px 0 20px; }
.plan-price small { font-family: var(--font-body); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; color: var(--muted); font-size: .95rem; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--gold); flex: none; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-family: var(--font-display); font-size: 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; margin: 0; max-width: 40em; }

.cta-band { text-align: center; padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); background: radial-gradient(700px 320px at 50% 100%, rgba(201, 169, 107, .12), transparent 70%); }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 14em; margin-inline: auto; }
.cta-band p { color: var(--muted); margin: 0 auto 2em; max-width: 32em; }

/* Rechtstexte */
.legal { padding-block: 56px 80px; max-width: 760px; }
.legal h1 { margin-bottom: .8em; }
.legal h2 { margin-top: 1.8em; font-size: 1.35rem; }
.legal p, .legal li { color: #cfcabf; }
.legal ul { padding-left: 1.2em; }
.draft-note { border: 1px dashed rgba(227, 189, 108, .55); background: var(--warn-tint); color: #f5e1b5; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 28px; font-size: .92rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .device { width: min(100%, 320px); margin-top: 12px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .qr-card { position: static; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .topbar-in { gap: 12px; flex-wrap: wrap; padding-block: 10px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -6px; }
  .shell-site .nav { display: none; }
  .plans { grid-template-columns: 1fr; }
  .code-grid { grid-template-columns: 1fr; }
  .code-card { grid-template-columns: 76px 1fr; gap: 14px; }
  .qr-thumb { width: 76px; height: 76px; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 10px 0; border-bottom: 1px solid var(--line-strong); }
  .table td { border: 0; padding: 7px 16px; display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
  .table td::before { content: attr(data-label); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  .cell-url { max-width: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .topbar-actions .btn-ghost { display: none; }
  .shell-app .topbar-actions .btn-ghost, .shell-admin .topbar-actions .btn-ghost { display: inline-flex; }
  .row { grid-template-columns: 1fr; }
  .device-badge { right: -4px; }
  .bars li { grid-template-columns: 90px 1fr 32px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .swap span:first-child { opacity: 1 !important; }
  .swap span:last-child { opacity: 0 !important; }
}
