/* Schnittwerk – Website (Startseite, Rechtstexte, Freischaltung, Zahlung).
   Eigenständig: app.css wird hier bewusst NICHT eingebunden (dort ist overflow:hidden gesetzt). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #0c0c11;
  --bg2: #101017;
  --panel: #13131b;
  --panel2: #1a1a25;
  --line: #26263a;
  --line2: #33334a;
  --pri: #7c5cff;
  --pri-h: #9177ff;
  --pri-soft: rgba(124, 92, 255, .14);
  --acc: #ffb547;
  --ok: #2fbf71;
  --err: #ff6b6b;
  --text: #ececf3;
  --muted: #a0a0b6;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pri-h); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--pri-h); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc);
}
.lead { font-size: 1.14rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  font: 700 .98rem/1 "Inter", system-ui, sans-serif; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; border-color: var(--pri); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.primary:hover { background: var(--pri-h); border-color: var(--pri-h); }
.btn.accent { background: var(--acc); border-color: var(--acc); color: #1b1407; }
.btn.accent:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center .cta-row { justify-content: center; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(12, 12, 17, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); font-weight: 700; font-size: .94rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-header .btn { min-height: 40px; padding: 0 16px; font-size: .92rem; }
@media (max-width: 820px) { .site-nav .opt { display: none; } }
@media (max-width: 520px) { .site-nav { gap: 14px; } .site-header .btn { padding: 0 12px; } }

/* Hero */
.hero { position: relative; padding: 72px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(600px 320px at 22% 30%, rgba(124, 92, 255, .30), transparent 70%),
    radial-gradient(520px 300px at 82% 40%, rgba(255, 181, 71, .14), transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.02fr 1.08fr; gap: 54px; align-items: center; }
.hero h1 .hl { background: linear-gradient(92deg, #b6a2ff, var(--pri) 45%, var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero .badges li { display: inline-flex; align-items: center; gap: 7px; }
.hero .badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 191, 113, .18); }
@media (max-width: 940px) {
  .hero { padding-top: 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}

/* Editor-Nachbildung (reines CSS, keine Bilddatei) */
.mock {
  border: 1px solid var(--line2); border-radius: 16px; overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow), 0 0 0 1px rgba(124, 92, 255, .08);
  user-select: none;
}
.mock-top { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #101018; }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: #2b2b3d; }
.mock-top b { margin-left: 8px; font-size: .78rem; color: var(--muted); font-weight: 700; }
.mock-top .exp { margin-left: auto; padding: 4px 10px; border-radius: 7px; background: var(--pri); color: #fff; font-size: .72rem; font-weight: 700; }
.mock-body { display: grid; grid-template-columns: 1fr 150px; }
.mock-stage { padding: 14px; background: #0a0a0f; display: grid; place-items: center; }
.mock-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 110%, #ff9f43 0%, #ff6b6b 26%, transparent 55%),
    linear-gradient(180deg, #2b1f63 0%, #6a3fb5 48%, #f08a5d 100%);
}
.mock-frame .sun { position: absolute; left: 62%; top: 52%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 40px 12px rgba(255, 210, 122, .55); }
.mock-frame .hill { position: absolute; left: -10%; right: -10%; bottom: -38%; height: 70%; border-radius: 50%; background: #1d1438; }
.mock-frame .hill.b { left: 35%; bottom: -46%; background: #140e29; }
.mock-frame .title {
  position: absolute; left: 7%; top: 14%; font-weight: 800; color: #fff; font-size: clamp(.9rem, 2.4vw, 1.5rem);
  letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.mock-frame .title small { display: block; font-weight: 700; font-size: .5em; letter-spacing: .14em; text-transform: uppercase; color: #ffe2b0; }
.mock-frame .sub {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); white-space: nowrap;
  padding: 3px 10px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: clamp(.55rem, 1.3vw, .8rem); font-weight: 700;
}
.mock-side { border-left: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; align-content: start; }
.mock-side .lbl { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mock-side .sw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock-side .sw i { aspect-ratio: 1; border-radius: 5px; background: linear-gradient(160deg, #6a3fb5, #f08a5d); }
.mock-side .sw i:nth-child(2) { filter: saturate(1.6) contrast(1.15); }
.mock-side .sw i:nth-child(3) { filter: grayscale(1); }
.mock-side .sw i:nth-child(4) { filter: sepia(.8); }
.mock-side .sw i:nth-child(5) { filter: hue-rotate(-30deg) saturate(1.3); outline: 2px solid var(--pri-h); outline-offset: 1px; }
.mock-side .sw i:nth-child(6) { filter: contrast(.8) brightness(1.15); }
.mock-side .sl { height: 6px; border-radius: 3px; background: var(--line2); position: relative; }
.mock-side .sl::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 50%); border-radius: 3px; background: var(--pri); }
.mock-tl { border-top: 1px solid var(--line); padding: 10px 12px 12px; background: #101018; position: relative; }
.mock-ruler { display: flex; justify-content: space-between; font-size: .6rem; color: #6c6c84; margin: 0 0 6px 26px; }
.mock-track { display: flex; align-items: center; gap: 4px; height: 26px; margin-bottom: 5px; }
.mock-track .tk { width: 22px; flex: none; font-size: .58rem; font-weight: 700; color: #6c6c84; }
.mock-track .c { height: 100%; border-radius: 6px; flex: var(--w, 1); }
.mock-track .v { background: linear-gradient(90deg, #5a3fd6, #7c5cff); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.mock-track .v.b { background: linear-gradient(90deg, #4c38b5, #6a52e6); }
.mock-track .t { background: rgba(255, 181, 71, .9); height: 70%; }
.mock-track .gap { flex: var(--w, 1); }
.mock-track .a {
  height: 70%;
  background: repeating-linear-gradient(90deg, rgba(47, 191, 113, .95) 0 2px, transparent 2px 4px) center / 100% 60% no-repeat, rgba(47, 191, 113, .18);
}
.mock-head { position: absolute; top: 6px; bottom: 6px; left: 46%; width: 2px; background: #fff; border-radius: 1px; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.mock-head::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top-color: #fff; }
@media (max-width: 560px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}

/* Vertrauensleiste */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.trust b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .trust { grid-template-columns: 1fr; } }

/* Funktionen */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.feature ul li { margin: 3px 0; }
.fi {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--pri-soft); color: var(--pri-h);
}
.fi.acc { background: rgba(255, 181, 71, .13); color: var(--acc); }
.fi.ok { background: rgba(47, 191, 113, .13); color: var(--ok); }
.fi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 940px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* Formate */
.formats { display: flex; justify-content: center; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin-top: 36px; }
.formats figure { margin: 0; text-align: center; }
.formats .fr {
  border: 2px solid var(--line2); border-radius: 10px; margin: 0 auto 10px;
  background: linear-gradient(180deg, rgba(124, 92, 255, .25), rgba(255, 181, 71, .12));
}
.formats .r169 { width: 176px; aspect-ratio: 16 / 9; }
.formats .r916 { width: 72px; aspect-ratio: 9 / 16; }
.formats .r11 { width: 112px; aspect-ratio: 1; }
.formats figcaption { font-weight: 700; }
.formats figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: s; }
.step { position: relative; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.step .n {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 14px;
  background: var(--pri); color: #fff; font-weight: 800;
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* Tarife */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 40px auto 0; }
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 18px;
  border: 1px solid var(--line2); background: var(--panel);
}
.price-card.pro { border-color: var(--pri); background: linear-gradient(180deg, rgba(124, 92, 255, .12), var(--panel) 46%); box-shadow: 0 0 0 1px rgba(124, 92, 255, .25), var(--shadow); }
.price-card .tag {
  position: absolute; top: -12px; right: 22px; padding: 4px 12px; border-radius: 99px;
  background: var(--acc); color: #1b1407; font-size: .75rem; font-weight: 800; letter-spacing: .04em;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.price small { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.price-note { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-list li { position: relative; padding: 7px 0 7px 28px; border-top: 1px solid var(--line); font-size: .96rem; }
.price-list li:first-child { border-top: 0; }
.price-list li::before {
  content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg);
}
.price-list li.no { color: var(--muted); }
.price-list li.no::before { width: 12px; height: 0; top: 18px; border-left: 0; border-bottom: 2.5px solid #5d5d74; transform: none; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 34px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Abschluss-Banner */
.final {
  padding: 46px 32px; border-radius: 20px; text-align: center; border: 1px solid var(--line2);
  background: radial-gradient(500px 220px at 50% 0%, rgba(124, 92, 255, .28), transparent 70%), var(--panel);
}
.final .lead { margin: 0 auto; }

/* Formulare (Freischalten, Betreiber) */
.card { padding: 28px; border: 1px solid var(--line2); border-radius: 18px; background: var(--panel); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .93rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line2); background: #0e0e15; color: var(--text);
  font: 400 1rem/1.4 "Inter", system-ui, sans-serif;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(124, 92, 255, .22); }
.field .hint { color: var(--muted); font-size: .86rem; }
input.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.notice { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); margin: 14px 0; }
.notice.ok { border-color: rgba(47, 191, 113, .5); background: rgba(47, 191, 113, .1); }
.notice.err { border-color: rgba(255, 107, 107, .5); background: rgba(255, 107, 107, .1); }
.notice.info { border-color: rgba(124, 92, 255, .45); background: var(--pri-soft); }

/* Zahlung */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 780px) { .pay-grid { grid-template-columns: 1fr; } }
.qr-box { display: grid; place-items: center; padding: 16px; border-radius: 14px; background: #fff; width: max-content; max-width: 100%; margin: 6px auto 14px; }
.qr-box img, .qr-box canvas, .qr-box svg { width: 220px; height: 220px; image-rendering: pixelated; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; overflow-wrap: break-word; hyphens: auto; }
.kv dd { margin: 0; font-weight: 700; word-break: break-all; }
.copy-btn {
  min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2);
  color: var(--text); font: 700 .8rem/1 "Inter", system-ui, sans-serif; cursor: pointer;
}
.copy-btn:hover { border-color: var(--pri); }
.copy-btn.done { border-color: var(--ok); color: var(--ok); }
.pay-card h3 { margin: 0 0 6px; }
.pay-card .kv { margin-top: 14px; }
@media (max-width: 380px) { .pay-card { padding: 18px; } .kv { gap: 8px 10px; } }

/* Auswahl (Checkbox/Radio) mit Text daneben */
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; color: var(--text); font-size: .94rem; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pri); cursor: pointer; }
.check .small { display: block; margin-top: 2px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.choice-row .check { margin: 4px 0; }

/* Rechtstexte */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4em; }
.legal p, .legal li { color: #cfcfdc; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal address { font-style: normal; }
.legal .upd { color: var(--muted); font-size: .9rem; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); background: #09090d; padding: 48px 0 28px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer .fcol h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.site-footer .fcol a { display: block; color: var(--text); padding: 3px 0; font-size: .95rem; }
.site-footer .fcol p { color: var(--muted); font-size: .92rem; max-width: 340px; margin-top: 12px; }
.site-footer .fbot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols .fcol:first-child { grid-column: 1 / -1; } }

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