/* ==========================================================================
   Spawnport – Designsystem (Tiefsee-Theme, Markenfarben über --brand / --brand-2)
   Schriften: Systemschriften (keine externen Fonts → DSGVO-freundlich)
   ========================================================================== */
:root {
  --brand: #2ee6c5;
  --brand-2: #3d6bff;
  --brand-ink: #03201b;
  --bg: #050a12;
  --bg-2: #08101b;
  --surface: #0d1522;
  --surface-2: #121c2c;
  --surface-3: #192538;
  --border: rgba(255, 255, 255, .07);
  --border-2: rgba(255, 255, 255, .12);
  --text: #e9ebf3;
  --text-2: #b9bdd0;
  --muted: #80869e;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-3); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; }
pre { background: #05060a; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; overflow: auto; white-space: pre-wrap; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
::selection { background: color-mix(in srgb, var(--brand) 40%, transparent); }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic-lg { width: 24px; height: 24px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.ok { color: var(--ok); } .danger { color: var(--danger); } .warn { color: var(--warn); }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 16px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-side { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .hide-sm { display: none !important; } }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: 600 .92rem/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-3); border-color: rgba(255,255,255,.2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand); border-color: transparent; color: var(--brand-ink); box-shadow: 0 6px 24px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, white); }
.btn-secondary { background: var(--brand-2); border-color: transparent; color: #fff; }
.btn-secondary:hover { background: color-mix(in srgb, var(--brand-2) 85%, white); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: color-mix(in srgb, var(--danger) 85%, black); border-color: transparent; color: #fff; }
.btn-danger:hover { background: var(--danger); }
.btn-success { background: color-mix(in srgb, var(--ok) 80%, black); border-color: transparent; color: #fff; }
.btn-success:hover { background: var(--ok); }
.btn-warn { background: color-mix(in srgb, var(--warn) 80%, black); border-color: transparent; color: #111; }
.btn-discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-icon { padding: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Formulare ---------- */
.field { display: block; margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--text-2); }
.help { display: block; font-size: .78rem; color: var(--muted); margin-top: 5px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--border-2); background: #0a0c13; color: var(--text); font: inherit; font-size: .93rem; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: color-mix(in srgb, var(--brand) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input::placeholder, textarea::placeholder { color: #5b6077; }
input[type=color] { width: 46px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--border-2); background: #0a0c13; cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; margin-bottom: 10px; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group > input, .input-group > select { flex: 1; min-width: 0; }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix span { display: flex; align-items: center; padding: 0 12px; background: var(--surface-3); border: 1px solid var(--border-2); border-left: 0; border-radius: 0 10px 10px 0; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; }
.event-grid .check { margin-bottom: 6px; font-size: .86rem; }

/* ---------- Karten ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card-body { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: 9px; }
.card-head .ic { color: var(--brand); }
.card-sub { color: var(--muted); font-size: .86rem; margin: 4px 0 0; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--border); }
.card.glow { box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent), var(--shadow); }
.card-danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }

/* ---------- Badges & Chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.badge-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.badge-danger { color: #f87171; background: color-mix(in srgb, var(--danger) 14%, transparent); }
.badge-info { color: var(--info); background: color-mix(in srgb, var(--info) 13%, transparent); }
.badge-muted { color: var(--muted); background: rgba(255,255,255,.05); }
.badge-brand { color: var(--brand); background: color-mix(in srgb, var(--brand) 13%, transparent); }
.badge.plain::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; color: var(--text-2); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255,255,255,.015); }
.table a.row-link { color: var(--text); font-weight: 600; }
.amount-pos { color: var(--ok); font-weight: 700; white-space: nowrap; }
.amount-neg { color: #f87171; font-weight: 700; white-space: nowrap; }

/* ---------- Hinweise ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 11px; margin-bottom: 14px; font-size: .92rem; border: 1px solid; }
.flash-success { background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: #bbf7d0; }
.flash-error { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: #fecaca; }
.flash-info { background: color-mix(in srgb, var(--info) 9%, transparent); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: #bae6fd; }
.flash-warning { background: color-mix(in srgb, var(--warn) 10%, transparent); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: #fde68a; }
.notice { padding: 14px 16px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); font-size: .9rem; }
.notice-warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.notice-danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 36px; height: 36px; color: var(--border-2); margin-bottom: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none !important; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 40%, var(--brand-2))); color: var(--brand-ink); box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--brand) 60%, transparent); }
.logo-mark svg { width: 20px; height: 20px; }
.logo span.suffix { color: var(--muted); font-weight: 600; }
.logo img { height: 34px; }

/* ==========================================================================
   Öffentliche Seiten
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links, .nav-actions { display: none; }
  .nav.open .container { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; }
  .nav.open .nav-links, .nav.open .nav-actions { display: flex; flex-direction: column; width: 100%; align-items: stretch; gap: 4px; }
}
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background:
  radial-gradient(600px 300px at 20% 30%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
  radial-gradient(700px 360px at 85% 20%, color-mix(in srgb, var(--brand-2) 28%, transparent), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } .hero { padding-top: 60px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); font-size: .8rem; font-weight: 700; color: var(--text-2); margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 20px; }
.grad { background: linear-gradient(100deg, var(--brand) 10%, color-mix(in srgb, var(--brand) 50%, var(--brand-2)) 60%, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: .86rem; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .ic { color: var(--ok); width: 16px; height: 16px; }
.hero-panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-2); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); transform: rotate(1deg); }
.hero-panel .mini-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); margin-top: 10px; }
.hero-panel .gicon { width: 38px; height: 38px; font-size: 1.2rem; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.035em; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }
.kicker { color: var(--brand); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px; display: block; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-strip > div { background: var(--surface); padding: 22px; text-align: center; }
.stat-strip b { display: block; font-size: 1.7rem; letter-spacing: -.03em; }
.stat-strip span { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.game-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none !important; transition: transform .18s, border-color .18s, box-shadow .18s; }
.game-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gc) 55%, transparent); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--gc) 60%, transparent); }
.game-art { height: 120px; display: grid; place-items: center; font-size: 3.2rem; background: radial-gradient(120px 90px at 30% 30%, color-mix(in srgb, var(--gc) 55%, transparent), transparent), linear-gradient(135deg, color-mix(in srgb, var(--gc) 30%, #0b0d15), #0b0d15 75%); border-bottom: 1px solid var(--border); position: relative; }
.game-art .tag { position: absolute; top: 10px; right: 10px; }
.game-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.game-body p { color: var(--muted); font-size: .86rem; margin: 0 0 14px; flex: 1; }
.price-from { display: flex; align-items: baseline; justify-content: space-between; }
.price-from b { font-size: 1.3rem; letter-spacing: -.02em; }
.price-from small { color: var(--muted); }
.gicon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: color-mix(in srgb, var(--gc, var(--brand-2)) 22%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--gc, var(--brand-2)) 35%, transparent); flex: none; }
.gicon.sm { width: 34px; height: 34px; font-size: 1.05rem; border-radius: 10px; }

.feature { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: 14px; }
.feature:nth-child(even) .fi { background: color-mix(in srgb, var(--brand-2) 18%, transparent); color: color-mix(in srgb, var(--brand-2) 60%, white); }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.steps { counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: var(--brand-ink); }
.step h3 { margin-top: 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }
.cta-band { position: relative; overflow: hidden; border-radius: 20px; padding: 44px; background: linear-gradient(120deg, color-mix(in srgb, var(--brand-2) 40%, var(--surface)), var(--surface) 60%); border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--text-2); margin: 0; }
.footer { border-top: 1px solid var(--border); padding: 54px 0 30px; margin-top: 40px; background: var(--bg-2); color: var(--muted); font-size: .9rem; }
.footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.footer h4 { color: var(--text); font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer a { color: var(--muted); display: block; padding: 3px 0; }
.footer a:hover { color: var(--text); }
.footer .bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.page-hero { padding: 54px 0 30px; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 20% 0%, color-mix(in srgb, var(--brand-2) 20%, transparent), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; } .prose h3 { margin-top: 1.2em; }
.prose { color: var(--text-2); }

/* Konfigurator */
.config { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .config { grid-template-columns: 1fr; } }
.config-section { padding: 22px; border-bottom: 1px solid var(--border); }
.config-section:last-child { border-bottom: 0; }
.config-section h3 { display: flex; align-items: center; gap: 9px; font-size: 1rem; }
.config-section h3 .num { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); display: grid; place-items: center; font-size: .78rem; color: var(--brand); }
.ram-display { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ram-display b { font-size: 2.2rem; letter-spacing: -.04em; }
input[type=range] { width: 100%; accent-color: var(--brand); height: 28px; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .opt { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); transition: border-color .15s, background .15s; }
.seg .opt b { display: block; font-size: .98rem; }
.seg .opt small { color: var(--muted); font-size: .78rem; }
.seg input:checked + .opt { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface-2)); box-shadow: 0 0 0 1px var(--brand) inset; }
.seg input:focus-visible + .opt { outline: 2px solid var(--brand); outline-offset: 2px; }
.seg .save { position: absolute; top: -8px; right: 8px; background: var(--ok); color: #04150a; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.seg input:disabled + .opt { opacity: .45; cursor: not-allowed; }
.summary { position: sticky; top: 90px; }
.summary .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; }
.summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .9rem; color: var(--text-2); border-bottom: 1px dashed var(--border); }
.summary .row:last-of-type { border-bottom: 0; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .9rem; color: var(--text-2); }
.spec-list .ic { color: var(--ok); margin-top: 3px; width: 16px; height: 16px; }

/* ==========================================================================
   App-Shell (Kunde / Support / Admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--bg-2) 260px, var(--bg) 260px); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 14px; }
.sidebar .logo { padding: 4px 8px 18px; }
.area-tag { margin: -8px 8px 16px; }
.side-group { margin-top: 18px; }
.side-group > span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #5d6380; font-weight: 800; padding: 0 10px 6px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none !important; margin-bottom: 2px; }
.side-nav a:hover { background: var(--surface); color: var(--text); }
.side-nav a.active { background: color-mix(in srgb, var(--brand) 11%, var(--surface)); color: var(--text); box-shadow: inset 2px 0 0 var(--brand); }
.side-nav a.active .ic { color: var(--brand); }
.side-nav .count { margin-left: auto; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.side-foot { margin-top: auto; padding-top: 18px; }
.sid-box { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; }
.sid-box .val { font-family: var(--mono); font-weight: 700; font-size: .95rem; color: var(--text); letter-spacing: .02em; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar .menu-btn { display: none; }
.balance-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); font-size: .88rem; font-weight: 700; }
.balance-pill > .ic { color: var(--brand); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 10px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--surface); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); z-index: 60; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text-2); font: 600 .88rem var(--font); background: none; border: 0; cursor: pointer; text-decoration: none !important; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-3); color: var(--text); }
.dropdown hr { margin: 6px 0; }
.content { padding: 28px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.imp-bar { background: var(--warn); color: #1c1300; padding: 8px 28px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .88rem; }
.imp-bar .btn { background: #1c1300; color: #fff; border: 0; }
.demo-bar { background: color-mix(in srgb, var(--brand-2) 22%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--brand-2) 40%, transparent); color: #d9d4ff; padding: 7px 28px; font-size: .82rem; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; background: var(--bg); }
  .sidebar { position: fixed; z-index: 80; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 70; }
  .topbar { padding: 0 16px; }
  .topbar .menu-btn { display: inline-flex; }
  .content { padding: 20px 16px; }
  .balance-pill .lbl { display: none; }
}

/* Kacheln */
.tile { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; }
.tile .t-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.tile .t-label .ic { width: 16px; height: 16px; }
.tile .t-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.tile .t-sub { font-size: .8rem; color: var(--muted); }
.tile.accent { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface) 65%); border-color: color-mix(in srgb, var(--brand) 28%, transparent); }
.tile.accent .t-label .ic { color: var(--brand); }

/* Server-Liste */
.srv { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none !important; }
.srv:last-child { border-bottom: 0; }
.srv:hover { background: rgba(255,255,255,.02); }
.srv .name { font-weight: 700; }
.srv .meta { font-size: .8rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.srv .addr { font-family: var(--mono); font-size: .82rem; color: var(--text-2); }

/* Server-Detail */
.srv-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.srv-head .gicon { width: 56px; height: 56px; font-size: 1.8rem; border-radius: 16px; }
.power-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.meter > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--danger))); transition: width .6s ease; }
.meter.ok > i { background: var(--ok); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copy-field { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .9rem; background: #0a0c13; border: 1px solid var(--border-2); border-radius: 10px; padding: 6px 6px 6px 12px; }
.copy-field span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.big-addr { font-size: 1.05rem; font-weight: 700; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 700; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--brand); }
.hook-status { font-size: .74rem; }

/* Support-ID-Box */
.supportid { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(120deg, color-mix(in srgb, var(--brand-2) 22%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--brand-2) 35%, transparent); flex-wrap: wrap; }
.supportid .ic-wrap { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-2) 30%, transparent); color: #fff; }
.supportid .val { font-family: var(--mono); font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; }
.pin { font-family: var(--mono); font-weight: 800; letter-spacing: .25em; }
.pin .mask { display: inline; } .pin .real { display: none; }
.pin.revealed .mask { display: none; } .pin.revealed .real { display: inline; }

/* Tickets */
.thread { display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 12px; }
.msg .bubble { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.msg .who { display: flex; align-items: center; gap: 8px; font-size: .84rem; margin-bottom: 8px; flex-wrap: wrap; }
.msg .who b { color: var(--text); }
.msg .text { color: var(--text-2); overflow-wrap: anywhere; }
.msg .text pre { margin: 8px 0; }
.msg-staff .bubble { border-color: color-mix(in srgb, var(--brand) 30%, transparent); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.msg-internal .bubble { border-style: dashed; border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); }
.msg-system .bubble { background: transparent; border-style: dashed; text-align: center; padding: 8px; font-size: .84rem; color: var(--muted); }

/* Diagramm */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; min-width: 4px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 35%, transparent)); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.bars .bar:hover { filter: brightness(1.25); }
.bars .bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--surface-3); border: 1px solid var(--border-2); padding: 3px 8px; border-radius: 6px; font-size: .74rem; z-index: 3; }
.bars-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 6px; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 50px 20px; position: relative; }
.auth-wrap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 260px at 50% 10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%); pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 440px; }
.auth-card .card-body { padding: 32px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); font-size: .85rem; text-decoration: none !important; }
.pagination .cur { background: var(--brand); color: var(--brand-ink); border-color: transparent; font-weight: 800; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .chip { text-decoration: none !important; }
.filters .chip.active { border-color: var(--brand); color: var(--text); background: color-mix(in srgb, var(--brand) 10%, var(--surface-2)); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.status-dot.maint { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
.status-dot.off { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; border: 1px solid var(--border-2); }
.voucher-code { font-family: var(--mono); font-weight: 800; letter-spacing: .06em; }
details.inline-form > summary { cursor: pointer; list-style: none; display: inline-flex; }
details.inline-form > summary::-webkit-details-marker { display: none; }
details.inline-form[open] > summary { margin-bottom: 12px; }

/* Sprachumschalter */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--surface); }
.lang-switch a { padding: 4px 9px; border-radius: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-decoration: none !important; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--brand); color: var(--brand-ink); }

.input-col { flex-direction: column; }
.input-col > * { width: 100%; }
