/* Merkivo-Website – mobile zuerst. Keine externen Schriften oder Skripte. */
:root {
    --g900: #0f3d33; --g800: #14532d; --g700: #1e7a46; --g500: #4a9e1f; --g400: #6cc024;
    --g200: #cfe6d2; --g100: #e3f1e5; --g50: #f3f8f4;
    --text: #12241c; --muted: #51665b; --line: #dbe8de; --surface: #fff;
    --red: #b3261e; --red-bg: #fde8e6; --amber-bg: #fff3dc;
    --radius: 18px; --shadow: 0 1px 2px rgba(15, 61, 51, .06), 0 8px 24px rgba(15, 61, 51, .08);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--surface); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--g700); }
h1, h2, h3 { color: var(--g900); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--g400); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.hint { font-size: .88rem; color: var(--muted); font-weight: 400; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 2px solid var(--g700); background: var(--g700); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: var(--g800); border-color: var(--g800); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--g800); border-color: var(--g200); }
.btn.ghost:hover { background: var(--g100); }
.btn.small { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: .95rem; }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 1.08rem; }
.btn.block { width: 100%; }
.btn.light { background: #fff; color: var(--g800); border-color: #fff; }
.btn.light:hover { background: var(--g100); }
.btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn.outline:hover { background: rgba(255, 255, 255, .12); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.cta-row.center { justify-content: center; }

/* Kopf */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.logo img { display: block; height: 44px; width: auto; }
.main-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; }
.main-nav a { padding: 8px 10px; border-radius: 10px; color: var(--g900); font-weight: 600; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--g100); }
@media (max-width: 560px) {
    .head-row { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; gap: 6px 10px; }
    .logo { margin-right: auto; }
    .logo img { height: 38px; }
    .main-nav { order: 3; width: 100%; margin: 0 -6px; justify-content: space-between; }
}

/* Abschnitte */
.section { padding: 64px 0; }
.section.tight { padding: 40px 0 64px; }
.section.alt { background: var(--g50); }
.section .sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }
.section h2.center { margin-bottom: 28px; }
.section h2.center + .sub { margin-top: -18px; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.28rem); color: var(--muted); }
.eyebrow { color: var(--g500); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin-bottom: 10px; }

.hero { background: radial-gradient(900px 500px at 85% 0%, var(--g200), transparent 70%), var(--g50); padding: 48px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero-points li::before { content: "✓ "; color: var(--g500); font-weight: 800; }
.phones { position: relative; height: 480px; max-width: 420px; margin: 0 auto; width: 100%; }
.phone { border-radius: 26px; border: 6px solid var(--g900); box-shadow: 0 24px 60px rgba(15, 61, 51, .28); background: #fff; display: block; }
.phones .phone { position: absolute; width: 228px; }
.phones .front { left: 4%; top: 0; z-index: 2; }
.phones .back { right: 2%; top: 44px; transform: rotate(5deg); opacity: .96; }
@media (min-width: 900px) {
    .hero { padding: 72px 0 84px; }
    .hero-grid { grid-template-columns: 1.1fr .9fr; }
    .phones { height: 560px; }
    .phones .phone { width: 262px; }
}
.page-hero { background: var(--g50); padding: 52px 0 36px; }

.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid.two, .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .emoji { font-size: 2rem; display: block; margin-bottom: 8px; }
.card.pain { border-top: 4px solid var(--g400); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: none; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px 22px 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--g800), var(--g400)); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }

.split { display: grid; gap: 32px; align-items: center; }
.split .phone { width: 250px; margin: 0 auto; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr .8fr; gap: 56px; } .split.reverse > div { order: 2; } .split .phone { width: 280px; } }

.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--g100); color: var(--g700); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.ticks.small { font-size: .93rem; gap: 6px; }

/* Preise */
.price-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 860px) { .price-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 28px 24px 22px; box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--g500); box-shadow: 0 16px 44px rgba(30, 122, 70, .22); }
.price-card .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--g700), var(--g400)); color: #fff; font-weight: 800; font-size: .82rem; padding: 5px 14px; border-radius: 14px; white-space: nowrap; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 2px; }
.price-card .tagline { color: var(--muted); margin-bottom: 14px; }
.price-card .price { margin-bottom: 18px; }
.price-card .price strong { font-size: 2.5rem; color: var(--g900); letter-spacing: -.02em; }
.price-card .price span { color: var(--muted); font-weight: 600; }
.price-card .ticks { flex: 1; }
.price-card .kind { margin: 12px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 22px; }

.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--g900); padding: 16px 0; list-style-position: outside; }
.faq p { color: var(--muted); padding-bottom: 6px; }

.final { background: linear-gradient(135deg, var(--g900), var(--g700)); color: #fff; }
.final h2 { color: #fff; }
.final .lead { color: #d9eedd; }

/* Formulare */
.form label, .plain-card label { display: block; font-weight: 700; font-size: .93rem; color: var(--g900); margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; border: 1px solid #c4d6c9; border-radius: 12px; font: inherit; font-weight: 400; color: var(--text); background: #fff; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g500); box-shadow: 0 0 0 3px rgba(74, 158, 31, .22); }
.two { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } .two.narrow-first { grid-template-columns: 140px 1fr; } }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 6px 0 20px; }
.form .check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--g700); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.error { background: var(--red-bg); color: var(--red); padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.notice { background: var(--amber-bg); color: #5c3600; padding: 12px 16px; border-radius: 12px; margin-bottom: 22px; }
.notice.ok { background: var(--g100); color: var(--g900); font-weight: 600; }

.checkout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.25fr .75fr; gap: 48px; } .summary { position: sticky; top: 88px; } }
.checkout h1 { font-size: 2rem; }
.checkout h2 { font-size: 1.2rem; margin: 22px 0 12px; }
.pay { background: var(--g50); border-radius: 12px; padding: 12px 16px; }
.summary { background: var(--g50); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.summary h2 { margin-top: 0; }
.summary .item strong, .summary .item span { display: block; }
.summary .item span { color: var(--muted); font-size: .93rem; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 8px; font-weight: 700; }
.summary .total strong { font-size: 1.6rem; color: var(--g900); }
.summary .total small { font-size: .85rem; color: var(--muted); font-weight: 600; }

.bigmark { font-size: 3rem; margin: 0; }
.receipt { text-align: left; margin: 22px auto; max-width: 460px; }
.receipt p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.receipt p:last-child { border: 0; }
.receipt span { color: var(--muted); }

.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose { overflow-wrap: anywhere; }

/* Fuß */
.site-foot { background: var(--g900); color: #cfe6d2; padding: 44px 0 20px; font-size: .95rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid img { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.foot-grid nav { display: grid; gap: 8px; align-content: start; }
.foot-grid nav strong { color: #fff; }
.foot-line { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px; padding-top: 18px; font-size: .88rem; }

/* Schlichte Einzelseiten (Installer, Admin-Anmeldung) */
body.plain { background: var(--g50); display: grid; place-items: start center; padding: 24px 16px; min-height: 100vh; }
.plain-card { width: 100%; max-width: 620px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 28px 24px; }
.plain-card > img { display: block; max-width: 280px; margin: 0 auto 6px; }
.plain-card h2 { font-size: 1.15rem; margin: 22px 0 10px; }
.plain-card .checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plain-card details { margin: 6px 0 14px; }
.plain-card summary { cursor: pointer; font-weight: 600; color: var(--g800); margin-bottom: 12px; }
.plain-card code { background: var(--g100); padding: 2px 6px; border-radius: 6px; }
.plain-card .note { background: var(--g100); padding: 12px 16px; border-radius: 12px; }

/* Zwei Produkte */
.product-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.product-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 22px; padding: 26px 24px; box-shadow: var(--shadow); }
.product-card.business { border-color: var(--g500); }
.product-card img { height: 74px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.product-card .for { font-weight: 800; color: var(--g500); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; margin-bottom: 8px; }
.product-card .ticks { flex: 1; }
.product-card .cta-row { margin: 4px 0 0; }
.price-group { font-size: 1.35rem; margin: 34px 0 22px; padding-bottom: 8px; border-bottom: 2px solid var(--g200); scroll-margin-top: 90px; }
.price-group:first-of-type { margin-top: 8px; }
.price-group span { font-weight: 500; color: var(--muted); font-size: 1rem; }
.business-band { background: linear-gradient(180deg, #fff, var(--g50)); }
.hero-logo { display: block; height: 96px; width: auto; margin-bottom: 14px; mix-blend-mode: multiply; }
.screen { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto; border-radius: 16px; border: 6px solid var(--g900); box-shadow: 0 24px 60px rgba(15, 61, 51, .25); }

/* Demo-Zugänge */
.demo-grid { display: grid; gap: 20px; }
@media (min-width: 820px) { .demo-grid:not(.single) { grid-template-columns: 1fr 1fr; } }
.demo-card { display: flex; flex-direction: column; background: #fff; border: 2px dashed var(--g200); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.demo-card img { height: 64px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.demo-card .for { font-weight: 800; color: var(--g500); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; margin-bottom: 8px; }
.demo-card > p:not(.for) { flex: 1; }
.creds { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 16px; padding: 12px 14px; background: var(--g50); border-radius: 12px; font-size: .95rem; }
.creds dt { color: var(--muted); }
.creds dd { margin: 0; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
