/* Shop – Grundgestaltung. Markenfarbe kommt als --brand aus den Einstellungen, eigenes CSS danach. */
:root {
	--bg: #0b0f1a; --bg-2: #111727; --card: #151c2e; --line: #243049; --text: #e9edf7; --muted: #98a3bd;
	--ok: #22c55e; --bad: #f05252; --warn: #f59e0b;
	--radius: 16px; --shadow: 0 10px 30px rgba(0, 0, 0, .25);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: dark;
}
html[data-mode="light"] {
	--bg: #f6f7fb; --bg-2: #eef0f7; --card: #ffffff; --line: #e2e6f0; --text: #141a2b; --muted: #5d6780; --shadow: 0 8px 24px rgba(20, 30, 60, .08);
	color-scheme: light;
}
@media (prefers-color-scheme: light) {
	html[data-mode="auto"] {
		--bg: #f6f7fb; --bg-2: #eef0f7; --card: #ffffff; --line: #e2e6f0; --text: #141a2b; --muted: #5d6780; --shadow: 0 8px 24px rgba(20, 30, 60, .08);
		color-scheme: light;
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
code, .s-mono { font-family: var(--mono); }
.s-skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.s-skip:focus { left: 8px; }

.s-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.s-narrow { width: min(720px, 100% - 40px); }
.s-xnarrow { width: min(460px, 100% - 40px); }
.s-muted { color: var(--muted); }
.s-small { font-size: 14px; }
.s-center { text-align: center; }
.s-ok { color: var(--ok); }
.s-bad { color: var(--bad); }
.s-empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* Kopf */
.s-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.s-header-in { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.s-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; margin-right: auto; }
.s-brand img { max-height: 40px; width: auto; display: block; }
.s-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); }
.s-nav { display: flex; gap: 4px; }
.s-nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.s-nav a:hover, .s-nav a[aria-current] { color: var(--text); background: var(--bg-2); }
.s-menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px; cursor: pointer; }
@media (max-width: 760px) {
	.s-menu-btn { display: block; }
	.s-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
	.s-nav.is-open { display: flex; }
}

/* Hero */
.s-hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 110px) 0 clamp(48px, 8vw, 90px); text-align: center;
	background: radial-gradient(1000px 420px at 50% -10%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 70%), var(--bg); }
.s-hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -.025em; max-width: 860px; margin-inline: auto; }
.s-lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.s-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Abschnitte */
.s-section { padding: clamp(40px, 7vw, 72px) 0; }
.s-alt { background: var(--bg-2); }
.s-head { text-align: center; margin-bottom: 28px; }
.s-head h1, .s-head h2 { margin-bottom: 6px; }
.s-head-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }

.s-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.s-feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.s-feature h3 { margin-top: 12px; }
.s-feature p { color: var(--muted); margin: 0; font-size: 15px; }
.s-feature-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }

/* Pakete */
.s-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.s-plans.is-small { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.s-plans-note { margin-top: 28px; }
.s-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.s-plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; box-shadow: var(--shadow); }
.s-plan.is-hl { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 16px 40px color-mix(in srgb, var(--brand) 25%, transparent); }
.s-plan.is-compact { padding: 18px; box-shadow: none; }
.s-plan .s-btn { margin-top: auto; }
.s-badge { position: absolute; top: -12px; left: 22px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.s-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.s-price strong { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.s-plan.is-compact .s-price strong { font-size: 24px; }
.s-price span, .s-permonth { color: var(--muted); font-size: 14px; }
.s-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; }
.s-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.s-list svg { color: var(--ok); flex: none; margin-top: 4px; }

/* Knöpfe */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, opacity .15s; }
.s-btn:active { transform: translateY(1px); }
.s-btn[disabled] { opacity: .5; cursor: not-allowed; }
.s-btn-primary { background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: var(--brand-ink); }
.s-btn-primary:hover { filter: brightness(1.08); }
.s-btn-soft { background: var(--brand-soft); color: var(--brand); }
.s-btn-soft:hover { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.s-btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.s-btn-ghost:hover { background: var(--bg-2); }
.s-btn-lg { padding: 13px 22px; font-size: 17px; }
.s-btn-sm { padding: 6px 12px; font-size: 14px; }
.s-btn-block { width: 100%; }
.s-icon-btn { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; }
.s-icon-btn:hover { color: var(--text); }
.s-icon-btn.is-done { color: var(--ok); border-color: var(--ok); }

/* Karten, Formulare */
.s-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.s-form { display: flex; flex-direction: column; gap: 16px; }
.s-field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.s-field label, .s-field legend, .s-label { font-weight: 600; font-size: 14px; }
.s-label { color: var(--muted); font-weight: 500; display: block; }
.s-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; }
.s-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.s-input-short { width: 110px; }
.s-code { text-transform: uppercase; letter-spacing: .08em; }
.s-static { padding: 10px 0; font-weight: 600; }
.s-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.s-check input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s-methods { display: grid; gap: 10px; margin-top: 4px; }
.s-method { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg-2); }
.s-method:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.s-method input { accent-color: var(--brand); }
.s-method small { display: block; color: var(--muted); font-size: 13px; }
.s-method-ic { color: var(--brand); display: grid; }
.s-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; }
.s-alert svg { flex: none; margin-top: 2px; }
.s-alert.is-bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.s-alert.is-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.s-back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.s-inline-form { margin-top: 8px; display: grid; gap: 8px; }
.s-inline { display: flex; gap: 10px; }
.s-row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Kauf */
.s-checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .s-checkout { grid-template-columns: 1fr; } .s-summary { order: -1; } }
.s-summary { position: sticky; top: 90px; }
.s-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.s-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; }

/* Status */
.s-state { text-align: center; }
.s-state-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 12px; }
.s-state-ic.is-ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.s-state-ic.is-wait, .s-state-ic.is-accent { background: var(--brand-soft); color: var(--brand); }
.s-state-ic.is-wait svg { animation: s-spin 2.4s linear infinite; }
.s-state-ic.is-bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.s-state-ic.is-muted { background: var(--bg-2); color: var(--muted); }
@keyframes s-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .s-state-ic.is-wait svg { animation: none; } html { scroll-behavior: auto; } }

.s-creds { display: grid; gap: 12px; margin-bottom: 14px; }
.s-cred-val { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.s-cred-val code { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; white-space: nowrap; font-size: 14px; }
.s-cred-val code.is-secret { filter: blur(5px); user-select: none; }
.s-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.s-status strong { display: block; font-size: 17px; }

/* Texte */
.s-prose h2 { margin-top: 1.2em; }
.s-prose h2:first-child, .s-prose h1:first-child { margin-top: 0; }
.s-prose ul, .s-prose ol { padding-left: 1.3em; }
.s-prose li { margin: .3em 0; }
.s-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.s-faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.s-faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.s-faq details[open] summary::after { content: "–"; }
.s-faq .s-prose { color: var(--muted); padding-bottom: 8px; }

/* Fuß */
.s-footer { border-top: 1px solid var(--line); padding: 36px 0 24px; margin-top: 20px; font-size: 15px; }
.s-footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.s-footer-text { color: var(--muted); margin-top: 6px; }
.s-footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.s-footer-nav a { color: var(--muted); text-decoration: none; }
.s-footer-nav a:hover { color: var(--text); }
.s-copy { color: var(--muted); font-size: 13px; margin-top: 22px; }
