/* ═══════════════════════════════════════════════════════════
   Bot-Shop · Design 2
   Neutral-dunkel, flache Flächen, ein Akzent (Violett).
   ═══════════════════════════════════════════════════════════ */

:root {
	color-scheme: dark;
	--bg: #09090b;
	--surface: #111113;
	--surface-2: #18181b;
	--surface-3: #1f1f23;
	--line: #232327;
	--line-strong: #2e2e33;
	--text: #fafafa;
	--text-2: #a1a1aa;
	--text-3: #71717a;
	--accent: #a78bfa;
	--accent-strong: #8b5cf6;
	--accent-soft: rgba(139, 92, 246, 0.12);
	--ok: #4ade80;
	--ok-soft: rgba(74, 222, 128, 0.1);
	--warn: #fbbf24;
	--warn-soft: rgba(251, 191, 36, 0.1);
	--danger: #f87171;
	--danger-soft: rgba(248, 113, 113, 0.1);
	--radius: 12px;
	--radius-sm: 8px;
	--font: "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
	--mono: "Geist Mono", "Cascadia Code", Consolas, monospace;
	--page: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font: 400 14.5px/1.55 var(--font);
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "ss01", "cv11";
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
p a, td a, dd a, .alert a, .hint a, .tiny a, .small a { color: var(--accent); }
p a:hover, .alert a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
::selection { background: rgba(139, 92, 246, 0.35); }

.icon { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: -3px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--text-3); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1; }
.hidden { display: none !important; }
.pre { white-space: pre-line; }
.container { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.gradient-text { background: linear-gradient(180deg, #fff 30%, #a1a1aa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─── Buttons ─── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
	border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
	font: 500 13.5px/1 var(--font); cursor: pointer; white-space: nowrap;
	transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--surface-3); border-color: #3a3a40; color: var(--text); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--text); border-color: var(--text); color: #09090b; }
.btn-primary:hover { background: #e4e4e7; border-color: #e4e4e7; color: #09090b; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(248, 113, 113, 0.35); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn-ok { background: transparent; border-color: rgba(74, 222, 128, 0.35); color: var(--ok); }
.btn-ok:hover { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-sm .icon { width: 14px; height: 14px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.inline { display: inline; }

/* ─── Badges ─── */
.badge {
	display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
	border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap;
	background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.badge.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.badge.danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.badge.accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }

/* ─── Karten ─── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 15px; }
.card h3 { font-size: 14px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: -20px -20px 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.card-head p { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .pricing > .card + .card { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 14px; }

/* ─── Formulare ─── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 500; color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--text-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
	width: 100%; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
	background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
	font: 400 14px/1.4 var(--font); outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { color: var(--text-2); background: var(--surface-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; margin-bottom: 12px; }
.check input { margin-top: 3px; accent-color: var(--accent-strong); width: 15px; height: 15px; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.input-group { display: flex; gap: 8px; }
.input-group > input, .input-group > select { flex: 1; min-width: 0; }
details > summary { cursor: pointer; }

/* ─── Hinweise ─── */
.alert {
	display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px;
	border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--text-2);
}
.alert > .icon { margin-top: 2px; }
.alert-success { border-color: rgba(74, 222, 128, 0.25); } .alert-success > .icon { color: var(--ok); }
.alert-error { border-color: rgba(248, 113, 113, 0.3); } .alert-error > .icon { color: var(--danger); }
.alert-warning { border-color: rgba(251, 191, 36, 0.3); } .alert-warning > .icon { color: var(--warn); }
.alert-info { border-color: rgba(167, 139, 250, 0.3); } .alert-info > .icon { color: var(--accent); }
.alert-success, .alert-error, .alert-warning, .alert-info { color: var(--text); }

.topbar-banner { padding: 8px 24px; text-align: center; font-size: 13px; background: var(--accent-soft); color: var(--accent); border-bottom: 1px solid var(--line); }
.impersonation-banner {
	display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap;
	padding: 8px 24px; background: var(--warn-soft); border-bottom: 1px solid rgba(251, 191, 36, 0.3); color: var(--warn); font-size: 13px;
}

/* ─── Tabellen ─── */
.table-wrap { overflow-x: auto; margin: 0 -20px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 500; padding: 8px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
td > a:not(.btn) strong, td > a:not(.btn) { color: var(--text); }
td > a:not(.btn):hover { color: var(--accent); }
.empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* ═══════════ Logo ═══════════ */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: -0.01em; }
.logo:hover { color: var(--text); }
.logo-mark {
	width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
	background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
}

/* ═══════════ App-Layout (Kunde & Admin) ═══════════ */
.appbar { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 11, 0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.appbar-inner { max-width: var(--page); margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 28px; }
.appnav { display: flex; align-items: center; gap: 2px; height: 100%; }
.appnav a {
	position: relative; display: inline-flex; align-items: center; gap: 7px; height: 100%; padding: 0 10px;
	color: var(--text-2); font-size: 13.5px; font-weight: 500;
}
.appnav a:hover { color: var(--text); }
.appnav a.active { color: var(--text); }
.appnav a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--text); border-radius: 2px; }
.appnav .icon { width: 15px; height: 15px; }
.appbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance-chip {
	display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px;
	border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text);
}
.balance-chip .icon { width: 14px; height: 14px; color: var(--text-3); }
.balance-chip:hover { border-color: #3a3a40; color: var(--text); }
.subnav { border-top: 1px solid var(--line); }
.subnav-inner { max-width: var(--page); margin: 0 auto; padding: 0 24px; height: 42px; display: flex; align-items: center; gap: 2px; overflow-x: auto; }
.subnav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-right: 10px; padding: 2px 8px; border-radius: 5px; background: var(--accent-soft); }
.subnav a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.subnav a:hover { color: var(--text); background: var(--surface-2); }
.subnav a.active { color: var(--text); background: var(--surface-3); }
.subnav .icon { width: 14px; height: 14px; }

.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px; border-radius: 999px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--surface-2); }
.user-menu .menu {
	position: absolute; right: 0; top: calc(100% + 8px); width: 230px; padding: 6px;
	background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head .name { font-weight: 600; font-size: 13.5px; }
.menu-head .sub { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button {
	display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px;
	color: var(--text-2); font: 400 13.5px var(--font); background: none; border: 0; cursor: pointer; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--surface-3); color: var(--text); }
.menu-toggle { display: none; }

.page { max-width: var(--page); margin: 0 auto; padding: 32px 24px 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--text); }

.avatar {
	width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
	background: var(--surface-3); border: 1px solid var(--line-strong); display: grid; place-items: center;
	color: var(--text); font-weight: 600; font-size: 12.5px;
}
.avatar-lg { width: 52px; height: 52px; font-size: 19px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip .name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.user-chip .sub { font-size: 12px; color: var(--text-3); }

/* Kennzahlen */
.stat { padding: 18px 20px; }
.stat .label { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 600; margin-top: 6px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* Bot-Karten */
.bot-card { display: flex; flex-direction: column; gap: 16px; transition: border-color .12s; }
.bot-card:hover { border-color: var(--line-strong); }
.bot-card .top { display: flex; gap: 12px; align-items: center; }
.bot-card .meta { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bot-card .meta div { padding: 10px 12px; }
.bot-card .meta div + div { border-left: 1px solid var(--line); }
.bot-card .meta span { display: block; font-size: 12px; color: var(--text-3); }
.bot-card .meta strong { font-size: 13.5px; font-weight: 500; }
.bot-icon {
	width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
	background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--text-2); overflow: hidden;
}
.bot-icon .icon { width: 20px; height: 20px; }
.bot-icon img { width: 100%; height: 100%; object-fit: cover; }
.page-head .bot-icon { width: 48px; height: 48px; border-radius: 12px; }
.new-card {
	display: grid; place-items: center; text-align: center; min-height: 196px; color: var(--text-3);
	border: 1px dashed var(--line-strong); background: transparent;
}
.new-card:hover { border-color: var(--text-3); color: var(--text); background: var(--surface); }
.new-card .plus { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; border: 1px solid var(--line-strong); }
.new-card strong { color: var(--text); font-weight: 500; }

/* Tabs */
.tabs { display: flex; gap: 4px; margin-bottom: 22px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 7px; color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tabs .icon { width: 15px; height: 15px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 12px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-3); }
.kv dd { word-break: break-word; }

.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > div { height: 100%; border-radius: 999px; background: var(--text); }
.progress.low > div { background: var(--warn); }
.big-number { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 12px; }

.console {
	background: #050506; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
	font: 12.5px/1.65 var(--mono); color: #d4d4d8; height: 520px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}
.console .l-shop { color: var(--accent); }
.console .l-err { color: var(--danger); }
.console .l-warn { color: var(--warn); }

.panel-frame { width: 100%; height: calc(100vh - 200px); min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* Paketauswahl */
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.plan-option { position: relative; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option .box { height: 100%; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); transition: border-color .12s, background .12s; }
.plan-option .box:hover { border-color: #3f3f46; }
.plan-option input:checked + .box { border-color: var(--accent-strong); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-strong); }
.plan-option input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-option .name { font-weight: 500; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.plan-option .amount { font-size: 22px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em; }
.plan-option .per-day { font-size: 12px; color: var(--text-3); }
.check-list { list-style: none; }
.check-list li { display: flex; gap: 10px; padding: 6px 0; color: var(--text-2); font-size: 13.5px; }
.check-list .icon { color: var(--accent); margin-top: 2px; }

.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 600; color: var(--text); }
.pay-methods { display: grid; gap: 8px; }
.pay-methods .btn { justify-content: space-between; height: 46px; padding: 0 16px; }

.success-hero { text-align: center; padding: 24px 8px; }
.success-hero .check-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.success-hero .check-icon .icon { width: 26px; height: 26px; }

.danger-zone { border-color: rgba(248, 113, 113, 0.25); }

/* Schritte (Einrichtung & Startseite) */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 42px; }
.step::before {
	counter-increment: step; content: counter(step);
	position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%;
	display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
	background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--text);
}
.step h3 { font-size: 14px; margin-bottom: 3px; }
.step p { color: var(--text-2); font-size: 13.5px; }

/* ═══════════ Öffentliche Seiten ═══════════ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 11, 0.8); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 60px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--text-2); font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.hero { position: relative; padding: 110px 0 90px; text-align: center; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px; opacity: .45;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after { content: ""; position: absolute; left: 50%; top: -220px; width: 720px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(139, 92, 246, 0.22), transparent); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; margin-bottom: 26px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.pill .icon { width: 13px; height: 13px; color: var(--accent); }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; max-width: 900px; margin: 0 auto 22px; }
.hero p.lead { font-size: 17px; color: var(--text-2); max-width: 600px; margin: 0 auto 34px; }
.hero .btn-row { justify-content: center; }
.hero-stats { display: flex; justify-content: center; margin: 64px auto 0; max-width: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hero-stats div { flex: 1; padding: 18px 12px; text-align: center; }
.hero-stats div + div { border-left: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.hero-stats span { color: var(--text-3); font-size: 12.5px; }

.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 0 40px; }
.section-head.center { margin: 0 auto 40px; text-align: center; }
.section-head .eyebrow { color: var(--accent); font-weight: 500; font-size: 13px; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.035em; margin-bottom: 12px; }
.section-head p { color: var(--text-2); font-size: 15.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.feature { background: var(--bg); padding: 26px; transition: background .15s; }
.feature:hover { background: var(--surface); }
.feature-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); }
.feature-icon .icon { width: 18px; height: 18px; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 13.5px; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 24px; }
.price-card.highlight { border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong), 0 24px 60px -30px rgba(139, 92, 246, 0.6); }
.price-card .ribbon { position: absolute; top: 20px; right: 20px; font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }
.price-card h3 { font-size: 14px; color: var(--text-2); font-weight: 500; }
.price { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; margin: 12px 0 2px; }
.price-card .per { color: var(--text-3); font-size: 12.5px; margin-bottom: 22px; }
.price-card ul { list-style: none; margin-bottom: 24px; flex: 1; border-top: 1px solid var(--line); padding-top: 16px; }
.price-card li { display: flex; gap: 10px; padding: 5px 0; font-size: 13.5px; color: var(--text-2); }
.price-card li .icon { color: var(--text); margin-top: 2px; width: 15px; height: 15px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 20px; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin-top: 10px; font-size: 14px; max-width: 720px; }

.cta-band { text-align: center; padding: 56px 28px; background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.14), transparent 70%), var(--surface); }
.cta-band h2 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 10px; }
.cta-band p { color: var(--text-2); margin-bottom: 26px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--text-3); font-size: 13px; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--text-3); }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.auth-wrap { min-height: calc(100vh - 61px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; padding: 32px 28px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; letter-spacing: -0.03em; }
.auth-card > p { color: var(--text-2); margin-bottom: 24px; font-size: 14px; }
.auth-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--warn); }
.auth-icon .icon { width: 22px; height: 22px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.legal { max-width: 780px; margin: 56px auto; }
.legal h1 { font-size: 30px; margin-bottom: 20px; }

/* Rechnung (hell, auch für Druck) */
.invoice { max-width: 820px; margin: 30px auto; background: #fff; color: #111; border-radius: 12px; padding: 48px; font-size: 14px; }
.invoice h1 { font-size: 24px; }
.invoice th { color: #666; border-color: #e5e5e5; padding-left: 0; }
.invoice td { border-color: #eee; padding-left: 0; }
.invoice .muted { color: #555; }
.invoice-actions { max-width: 820px; margin: 24px auto 0; display: flex; gap: 8px; justify-content: flex-end; }
@media print {
	body { background: #fff; }
	.invoice-actions, .impersonation-banner, .topbar-banner { display: none; }
	.invoice { margin: 0; padding: 0; border-radius: 0; }
}

/* ─── Responsive ─── */
@media (max-width: 1000px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.nav-links { display: none; }
	.menu-toggle { display: inline-flex; }
	.appbar-inner { gap: 12px; }
	.appnav { display: none; }
	.subnav { display: none; }
	.appbar.open .appnav, .appbar.open .subnav { display: flex; }
	.appbar.open .appnav {
		position: absolute; top: 56px; left: 0; right: 0; height: auto; flex-direction: column; align-items: stretch;
		padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
	}
	.appbar.open .appnav a { height: 42px; }
	.appbar.open .appnav a.active::after { display: none; }
	.appbar.open .subnav { position: absolute; top: calc(56px + 5 * 42px + 16px); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
	.appbar.open .subnav-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
	.balance-chip { display: none; }
	.page { padding: 24px 16px 60px; }
	.kv { grid-template-columns: 1fr; gap: 2px 0; }
	.kv dd { margin-bottom: 10px; }
}
@media (max-width: 640px) {
	.container, .appbar-inner { padding: 0 16px; }
	.grid-2, .grid-3, .grid-4, .feature-grid { grid-template-columns: minmax(0, 1fr); }
	.hero { padding: 72px 0 56px; }
	.hero-stats { flex-direction: column; }
	.hero-stats div + div { border-left: 0; border-top: 1px solid var(--line); }
	.nav-actions .btn-ghost { display: none; }
	.card { padding: 16px; }
	.card-head { margin: -16px -16px 16px; padding: 14px 16px; }
	.table-wrap { margin: 0 -16px; }
	th, td { padding-left: 16px; padding-right: 16px; }
	.invoice { padding: 24px; margin: 0; border-radius: 0; }
	.logo-text { display: none; }
}
