/* Maaax-Host – gemeinsames Stylesheet. Keine externen Ressourcen, Systemschriften. */

:root {
  color-scheme: light dark;
  --bg: #f6f7fa;
  --bg-alt: #eceef3;
  --surface: #ffffff;
  --border: #d9dde6;
  --text: #10131a;
  --muted: #4d5566;
  --accent: #19803a;        /* Grün, AA-Kontrast auf Hell */
  --accent-strong: #11652c;
  --accent-ink: #ffffff;    /* Text auf Akzentflächen */
  --accent-soft: #e2f5e4;
  --violet: #6d3fd8;
  --mark-bg: #fff3a3;
  --mark-text: #3d3200;
  --warn-bg: #fff4d6;
  --warn-border: #e2b53a;
  --banner-bg: #10131a;
  --banner-text: #f3f5f9;
  --shadow: 0 1px 2px rgb(16 19 26 / .06), 0 8px 24px rgb(16 19 26 / .06);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e13;
    --bg-alt: #11151d;
    --surface: #151a24;
    --border: #262d3b;
    --text: #e9ecf2;
    --muted: #a0a9bb;
    --accent: #7cff6b;
    --accent-strong: #a6ff99;
    --accent-ink: #0b1a09;
    --accent-soft: #16261a;
    --violet: #a98bff;
    --mark-bg: #594a00;
    --mark-text: #fff3b0;
    --warn-bg: #2a2310;
    --warn-border: #a88420;
    --banner-bg: #1d2533;
    --banner-text: #e9ecf2;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px rgb(0 0 0 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
@media (prefers-color-scheme: light) { a { color: var(--accent-strong); } }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.4rem); font-weight: 850; }
h2 { font-size: clamp(1.5rem, 2.5vw + .6rem, 2.1rem); font-weight: 800; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 750; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); color: var(--text); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (max-width: 420px) { .wrap { padding: 0 16px; } }

/* ---------- Shop-Hinweis ---------- */
#shop-hinweis {
  background: var(--banner-bg);
  color: var(--banner-text);
  font-size: .9rem;
  text-align: center;
  padding: .45rem 16px;
  border-bottom: 1px solid var(--border);
}
#shop-hinweis[hidden] { display: none; }
#shop-hinweis .dot {
  display: inline-block; width: .55rem; height: .55rem; border-radius: 50%;
  background: #f5c542; margin-right: .5rem; vertical-align: .05em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem 1.25rem; flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text); text-decoration: none; font-weight: 850; font-size: 1.25rem; letter-spacing: -.02em;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .aaa { color: var(--accent); }
@media (prefers-color-scheme: light) { .brand .aaa { color: var(--accent); } }
.nav { display: flex; align-items: center; gap: .25rem .4rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .4rem .6rem; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-alt); }
.nav .btn { margin-left: .3rem; }
@media (max-width: 860px) {
  .header-row { justify-content: center; }
  .nav { justify-content: center; width: 100%; }
  .nav a { padding: .35rem .5rem; font-size: .9rem; }
  .site-header { position: static; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .6rem 1.15rem; border-radius: 999px;
  font-weight: 750; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .12s ease, background-color .12s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: var(--accent-strong); } }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-small { min-height: 38px; padding: .35rem .9rem; font-size: .92rem; }
.btn:active { transform: translateY(1px); }
.btn.is-disabled, .btn[aria-disabled="true"] {
  background: var(--bg-alt); color: var(--muted); border-color: var(--border);
  cursor: not-allowed; pointer-events: none;
}
.nav a.btn { color: var(--text); }
.nav a.btn-primary { color: var(--accent-ink); }
.nav a.btn:hover { background: var(--surface); }
.nav a.btn-primary:hover { background: var(--accent-strong); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--violet) 18%, transparent), transparent 60%),
    radial-gradient(40rem 26rem at -5% 110%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    var(--bg);
}
.hero .eyebrow, .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet); margin-bottom: .8rem;
}
.hero h1 { max-width: 18ch; }
.hero .lead { font-size: clamp(1.1rem, 1vw + .9rem, 1.35rem); color: var(--muted); max-width: 44rem; }
.slogan { font-style: normal; font-weight: 850; }
.slogan .x { color: var(--accent); }
.meter { display: inline-flex; gap: 5px; align-items: flex-end; height: 1em; margin-right: .35em; vertical-align: -.1em; }
.meter i { display: block; width: .28em; border-radius: 2px; background: var(--muted); }
.meter i:nth-child(1) { height: 40%; }
.meter i:nth-child(2) { height: 70%; background: var(--text); }
.meter i:nth-child(3) { height: 100%; background: var(--accent); }

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.page-head p { color: var(--muted); max-width: 46rem; font-size: 1.12rem; }

/* ---------- Abschnitte ---------- */
main { display: block; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section > .wrap > h2:first-child { margin-top: 0; }
.intro { color: var(--muted); max-width: 46rem; }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.35rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
a.card { color: inherit; text-decoration: none; transition: border-color .12s ease, transform .12s ease; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: .9rem; flex: none;
}
@media (prefers-color-scheme: light) { .icon { color: var(--accent-strong); } }
.icon svg { width: 24px; height: 24px; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  vertical-align: middle;
}
@media (prefers-color-scheme: light) { .badge { color: var(--accent-strong); } }
.badge-soon { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }

/* ---------- Pakete ---------- */
.plans { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 1.5rem; }
.plan { position: relative; }
.plan.featured { border: 2px solid var(--accent); }
.plan .tag {
  position: absolute; top: -.8rem; right: 1rem; background: var(--accent); color: var(--accent-ink);
  font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; letter-spacing: .04em;
}
.plan .ram { font-size: 2.4rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; margin: .3rem 0 .2rem; }
.plan .ram small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.plan .price { font-weight: 750; margin: .6rem 0 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.plan li { padding: .35rem 0 .35rem 1.6rem; position: relative; border-top: 1px dashed var(--border); }
.plan li::before {
  content: ""; position: absolute; left: .15rem; top: .85rem; width: .7rem; height: .38rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; width: 100%; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; }
.checklist li::before {
  content: ""; position: absolute; left: .2rem; top: .55rem; width: .7rem; height: .38rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--violet); color: #fff; font-weight: 800; margin-bottom: .6rem;
}
.steps strong { display: block; }

.cta {
  border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 4vw, 2.6rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 22%, var(--surface)), color-mix(in srgb, var(--accent) 16%, var(--surface)));
  border: 1px solid var(--border);
}
.cta h2 { margin-top: 0; }

details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .2rem 1.1rem; margin-bottom: .6rem; }
details.faq summary { cursor: pointer; font-weight: 700; padding: .75rem 0; list-style-position: outside; }
details.faq[open] summary { border-bottom: 1px solid var(--border); margin-bottom: .75rem; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .97rem; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-alt); font-weight: 750; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 50rem; }
.legal h2 { font-size: 1.4rem; }
.legal h3 { font-size: 1.1rem; }
.legal ol, .legal ul { padding-left: 1.4rem; }
.legal li { margin-bottom: .35rem; }
.legal .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1rem 0; }
.entwurf {
  background: var(--warn-bg); border: 2px solid var(--warn-border); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; margin: 0 0 2rem; font-weight: 650;
}
.entwurf strong { display: block; font-size: 1.1rem; }
mark, mark.luecke {
  background: var(--mark-bg); color: var(--mark-text); padding: .05em .3em; border-radius: 4px;
  font-weight: 650; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem 1rem 2.4rem; }
.toc li { margin-bottom: .2rem; }

.note { color: var(--muted); font-size: .95rem; }
.kbd { font-family: var(--mono); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; padding: .05rem .4rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2.5rem 0 2rem; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

.big404 { font-size: clamp(5rem, 20vw, 10rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; margin: 0; }
.big404 span { color: var(--accent); }
