/* Quantify-Website. Größen in rem, die Basisschrift wächst mit dem Bildschirm (16 px bis 22 px). */
:root {
  --bg: #000000; --panel: #1c1717; --panel-2: #241b1b; --line: #382727; --line-hover: #5a4242; --text: #e6dedc; --muted: #a99d9b;
  --white: #fff; --accent: #8da2ff; --green: #4ee3a1; --red: #ff5c8a; --brand: #5b6cf0;
  --gutter: clamp(1.25rem, 5vw, 6rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: clamp(16px, 0.45vw + 11px, 22px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(60rem 32rem at 88% 0, rgba(95, 55, 55, .34), transparent 70%),
    radial-gradient(52rem 34rem at 0 22rem, rgba(47, 31, 31, .85), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
code { background: var(--panel-2); padding: .05em .4em; border-radius: .3rem; color: var(--text); font-size: .92em; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 110rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Kopfzeile ---- */
header.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1.25rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand img { width: 1.9rem; height: 1.9rem; border-radius: .4rem; }
nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: .35rem 0; }
nav a:hover, nav a.on { color: var(--white); }

/* ---- Überschriften und Text ---- */
h1 { color: var(--white); font-size: clamp(2.2rem, 3.4vw + 1rem, 4.6rem); line-height: 1.07; margin: 1.1rem 0 1.1rem; letter-spacing: -.02em; }
h2 { color: var(--white); font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.2rem); line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, .5vw + .95rem, 1.35rem); color: var(--muted); max-width: 38em; margin: 0 0 1.8rem; }
.sub { color: var(--muted); margin: 0 0 1.6rem; max-width: 46em; }
.small { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }
.pill { display: inline-block; border: 1px solid #1f6e53; color: var(--green); border-radius: 999px; padding: .25rem .9rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---- Buttons ---- */
.cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: .65rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--white); background: var(--panel); cursor: pointer; font-size: 1rem; font-family: inherit; text-align: center; }
.btn:hover { border-color: var(--line-hover); }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: #6f7ef5; }

/* ---- Hero: Text links, Fenster rechts ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); padding: clamp(1.5rem, 4vw, 4.5rem) 0 clamp(1.5rem, 3vw, 3rem); }
.hero-text h1 { max-width: 13em; }
.shotframe { margin: 0; }
.shotframe img { display: block; width: 100%; border-radius: 1rem; }

/* ---- Abschnitte ---- */
section { padding: clamp(2.2rem, 4.5vw, 4.5rem) 0 .5rem; }
.pagehead { padding: clamp(1rem, 2.5vw, 2.5rem) 0 0; }
.pagehead h1 { font-size: clamp(2rem, 2.6vw + 1rem, 3.8rem); margin: 0 0 .8rem; }
.pagehead .lead { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; padding: 1.3rem; }
.card h3 { color: var(--white); font-size: 1.08rem; margin: 0 0 .4rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.linkcards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.linkcards a.card { text-decoration: none; color: inherit; display: block; transition: border-color .15s; }
.linkcards a.card:hover { border-color: #3a4190; }
.linkcards a.card h3 span { color: var(--accent); }

.safe { border: 1px solid #1f6e53; background: rgba(78, 227, 161, .06); border-radius: .8rem; padding: 1.3rem 1.5rem; }
.safe h2, .safe h3 { color: var(--green); margin: 0 0 .4rem; font-size: 1.1rem; }
.safe p { margin: 0; color: var(--text); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.mode { background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; padding: 1rem 1.2rem; }
.mode b { display: inline-block; min-width: 2.2em; text-align: center; border-radius: .4rem; padding: .05rem .5rem; margin-right: .5rem; font-size: .8rem; color: #0e0e11; }
.mode .g { background: var(--green); } .mode .y { background: #ffd24d; } .mode .r { background: var(--red); }
.mode p { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }

/* Text links, Bild rechts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: center; }
.split.flip .shotframe { order: -1; }
.split2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: start; }
.split2 > div > section + section { padding-top: 1.5rem; }
.split2 > div > section:first-child, .split2 > section:first-child { padding-top: clamp(2.2rem, 4.5vw, 4.5rem); }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
ol.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; padding: 1rem 1.2rem 1rem 3.6rem; position: relative; }
ol.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: .95rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

.getkey { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.getkey .card.big { border-color: #3a4190; }
.copy { display: inline-flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .8rem; }
.copy code { font-size: 1rem; padding: .45rem .8rem; }
.copy button { font: inherit; font-size: .9rem; padding: .4rem .8rem; border-radius: .5rem; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }

.faqgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1rem; align-items: start; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; padding: .9rem 1.2rem; }
summary { cursor: pointer; color: var(--white); font-weight: 600; }
details p { color: var(--muted); margin: .6rem 0 0; }

footer { margin-top: clamp(3rem, 6vw, 6rem); border-top: 1px solid var(--line); padding: 1.8rem 0 3.5rem; color: var(--muted); font-size: .9rem; }
footer p { margin: 0 0 .5rem; }
footer nav.fnav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; margin: 0 0 1rem; }
footer nav.fnav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
footer nav.fnav a:hover { color: var(--white); }

.notfound { text-align: center; padding: clamp(3rem, 8vw, 7rem) 0 2rem; }
.notfound h1 { font-size: 2rem; margin: 0 auto .6rem; max-width: none; }
.notfound .lead { margin: 0 auto 1.6rem; }
.notfound .code { font-size: clamp(4rem, 9vw, 7rem); font-weight: 800; color: var(--white); letter-spacing: -.03em; margin: 0; line-height: 1; }
.notfound .cta { justify-content: center; }

/* ---- Preise ---- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; padding: clamp(1.3rem, 2vw, 2rem); display: flex; flex-direction: column; }
.plan.featured { border-color: #3a4190; }
.plan .tag { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan h3 { color: var(--white); font-size: 1.2rem; margin: .3rem 0 0; }
.plan .price { font-size: clamp(2.4rem, 2.2vw + 1.6rem, 3.8rem); font-weight: 800; color: var(--white); line-height: 1.1; margin: .5rem 0 1rem; letter-spacing: -.02em; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { padding-left: 1.2rem; margin: 0 0 1.5rem; color: var(--muted); }
.plan li { margin-bottom: .3rem; }
.plan .btn { margin-top: auto; }
.grid.one { grid-template-columns: 1fr; }

/* ---- Tablet ---- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .linkcards { grid-template-columns: repeat(2, 1fr); }
  .linkcards a.card:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero, .split, .split2 { grid-template-columns: 1fr; }
  .split.flip .shotframe { order: 0; }
  .hero-text h1 { max-width: none; }
  .faqgrid, .getkey, .plans { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
}
/* ---- Handy ---- */
@media (max-width: 600px) {
  .grid, .linkcards { grid-template-columns: 1fr; }
  .linkcards a.card:last-child { grid-column: auto; }
  .cta .btn { flex: 1 1 100%; }
  .brand { font-size: 1.05rem; }
  nav { gap: .2rem 1.1rem; }
  .card { padding: 1.1rem; }
  ol.steps li { padding-left: 3.3rem; }
  .shotframe img { border-radius: .7rem; }
}
