/* FennecHosting Kundenpanel */
:root {
  --bg: #0a0e17; --bg-2: #0d1320; --surface: #131b2a; --surface-2: #1a2436; --surface-3: #212d43;
  --border: #243049; --border-2: #2f3d5a; --text: #eef2f8; --muted: #93a0b8; --dim: #66738c;
  --accent: #ff8a3d; --accent-2: #ffa766; --accent-ink: #1a0d03; --accent-soft: rgba(255, 138, 61, .12);
  --green: #3ddc97; --green-soft: rgba(61, 220, 151, .12); --red: #ff6b6b; --red-soft: rgba(255, 107, 107, .12);
  --yellow: #ffd166; --yellow-soft: rgba(255, 209, 102, .12); --blue: #6aa8ff; --blue-soft: rgba(106, 168, 255, .12);
  --radius: 16px; --radius-sm: 10px; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --side: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h3 { font-weight: 700; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
.i { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.small { font-size: .86rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* ------------------------------------------------ App-Gerüst */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--bg-2) calc(var(--side) - 1px), var(--border) calc(var(--side) - 1px), var(--border) var(--side), var(--bg) var(--side)); }
.side { border-right: 0 !important; }
.main { background: radial-gradient(900px 400px at 85% -10%, rgba(255, 138, 61, .07), transparent 70%), var(--bg); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.12rem; padding: 4px 8px 18px; }
.brand b { color: var(--accent); }
.brand img { width: 32px; height: 32px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.side nav a:hover { background: var(--surface); color: var(--text); }
.side nav a.on { background: var(--accent-soft); color: var(--accent-2); }
.side nav .sep { height: 1px; background: var(--border); margin: 10px 6px; }
.side__foot { margin-top: auto; display: grid; gap: 8px; }
.balance-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; color: var(--text); }
.balance-chip span { color: var(--muted); font-size: .82rem; }
.balance-chip b { font-size: 1.05rem; }
.balance-chip:hover { border-color: var(--accent); color: var(--text); }
.side__links { display: flex; gap: 6px; flex-wrap: wrap; }
.side__links a, .side__links button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; color: var(--muted); background: none; border: 1px solid var(--border); font: inherit; font-size: .84rem; cursor: pointer; }
.side__links a:hover, .side__links button:hover { color: var(--text); border-color: var(--border-2); }
.main { min-width: 0; }
.topbar { display: none; }
.content { padding: 32px clamp(16px, 3vw, 40px) 64px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .app.nav-open .side { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 40; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); position: sticky; top: 0; z-index: 30; }
  .topbar .brand { padding: 0; }
  .content { padding-top: 22px; }
}

/* ------------------------------------------------ Bausteine */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stack > .card + .card { margin-top: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.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)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font: inherit; font-weight: 700; font-size: .93rem; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease, opacity .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn--ghost { border-color: var(--border-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }
.btn--soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--soft:hover { background: var(--surface-3); color: var(--text); }
.btn--green { background: var(--green); color: #04150d; }
.btn--red { background: var(--red-soft); color: var(--red); border-color: rgba(255, 107, 107, .3); }
.btn--red:hover { background: var(--red); color: #1a0505; }
.btn--sm { padding: 8px 14px; font-size: .86rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; transform: none; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge--blue { background: var(--blue-soft); color: var(--blue); }
.badge--plain::before { display: none; }
.badge--pulse::before { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 18px; }
.alert .i { margin-top: 2px; }
.alert p:last-child { margin: 0; }
.alert--success { border-color: rgba(61, 220, 151, .35); background: var(--green-soft); }
.alert--success .i { color: var(--green); }
.alert--error { border-color: rgba(255, 107, 107, .35); background: var(--red-soft); }
.alert--error .i { color: var(--red); }
.alert--warning { border-color: rgba(255, 209, 102, .35); background: var(--yellow-soft); }
.alert--warning .i { color: var(--yellow); }
.alert--info { border-color: rgba(106, 168, 255, .3); background: var(--blue-soft); }
.alert--info .i { color: var(--blue); }

/* Formulare */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: .88rem; font-weight: 600; color: var(--muted); }
.field small { color: var(--dim); font-size: .8rem; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm); padding: 11px 13px; color-scheme: dark; transition: border-color .15s, box-shadow .15s; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row--3 { grid-template-columns: 1fr 2fr; }
@media (max-width: 600px) { .field-row, .field-row--3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .92rem; color: #d1d8e4; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 44px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-2); position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .18s ease, background .15s; }
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--accent-soft); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.form-errors { margin: 0; padding-left: 20px; color: var(--red); }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.table td.wrap { white-space: normal; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--text); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .i { color: var(--dim); margin-bottom: 10px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

/* ------------------------------------------------ Anmeldung */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth__form { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 6vw, 80px); max-width: 560px; width: 100%; margin: 0 auto; }
.auth__form .brand { padding: 0 0 36px; }
.auth__art { position: relative; overflow: hidden; background: #0f1626; }
.auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 14, 23, .2) 40%, rgba(10, 14, 23, .6) 100%), linear-gradient(0deg, rgba(10, 14, 23, .9), transparent 50%); }
.auth__quote { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 48px; }
.auth__quote h2 { font-size: 2rem; }
.auth__quote ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; color: #d1d8e4; }
.auth__quote li { display: flex; gap: 10px; align-items: center; }
.auth__quote li .i { color: var(--accent); }
.auth__alt { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.auth__lang { position: absolute; top: 20px; right: 24px; z-index: 2; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__art { display: none; } }

/* ------------------------------------------------ Dashboard */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__label { color: var(--muted); font-size: .86rem; display: flex; align-items: center; gap: 8px; }
.stat__value { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.stat__value small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.hero-card { position: relative; overflow: hidden; background: linear-gradient(135deg, #1b2438, #121a29); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.hero-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 61, .25), transparent 70%); }
.hero-card > * { position: relative; z-index: 1; }

/* Serverkarten */
.srv-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.srv-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: transform .15s ease, border-color .15s ease, box-shadow .15s; }
.srv-card:hover { transform: translateY(-2px); border-color: var(--border-2); box-shadow: var(--shadow); color: var(--text); }
.srv-card__img { position: relative; aspect-ratio: 16 / 7; background: var(--surface-2); }
.srv-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.srv-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, transparent 70%); }
.srv-card__img .badge { position: absolute; z-index: 1; top: 12px; right: 12px; backdrop-filter: blur(6px); }
.srv-card__body { padding: 4px 18px 18px; display: grid; gap: 6px; }
.srv-card__body h3 { margin: 0; font-size: 1.08rem; }
.srv-card__meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.srv-card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.srv-card--new { align-items: center; justify-content: center; text-align: center; padding: 28px; border-style: dashed; background: transparent; color: var(--muted); min-height: 200px; gap: 10px; }
.srv-card--new .i { color: var(--accent); }

/* ------------------------------------------------ Server-Detail */
.srv-hero { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 18px; background: var(--surface); }
.srv-hero__bg { position: absolute; inset: 0; }
.srv-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.srv-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 25%, rgba(19, 27, 42, .55)); }
.srv-hero__in { position: relative; padding: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.srv-hero h1 { margin: 0 0 6px; font-size: 1.6rem; }
.srv-hero__meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; }
.addr { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); background: rgba(10, 14, 23, .6); border: 1px solid var(--border-2); border-radius: 10px; padding: 6px 8px 6px 12px; color: var(--text); }
.addr button { background: var(--surface-3); border: 0; color: var(--muted); border-radius: 7px; padding: 4px 6px; cursor: pointer; display: inline-flex; }
.addr button:hover { color: var(--text); }
.power { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 22px; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--accent-2); border-bottom-color: var(--accent); }
.tabs a.soon { opacity: .5; }

.meter { display: grid; gap: 8px; }
.meter__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.meter__label { color: var(--muted); font-size: .86rem; display: flex; gap: 8px; align-items: center; }
.meter__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.meter__val small { color: var(--muted); font-weight: 500; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .6s ease; }
.bar.is-high > i { background: linear-gradient(90deg, #ff9f43, var(--red)); }
.spark { width: 100%; height: 46px; display: block; }
.spark path.l { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark path.a { fill: url(#sg); opacity: .35; }

.console { background: #070a11; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.console__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); font-size: .86rem; color: var(--muted); gap: 10px; }
.console__out { height: 420px; overflow-y: auto; padding: 12px 14px; font: 12.5px/1.55 var(--mono); color: #cfd6e3; white-space: pre-wrap; word-break: break-word; }
.console__out .sys { color: var(--accent-2); }
.console__in { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding: 8px 10px; background: var(--bg-2); }
.console__in span { color: var(--accent); font-family: var(--mono); padding-left: 4px; }
.console__in input { flex: 1; background: transparent; border: 0; color: var(--text); font: 13px var(--mono); padding: 8px 4px; }
.console__in input:focus { outline: none; }
.ansi-30 { color: #5c6370; } .ansi-31 { color: #ff6b6b; } .ansi-32 { color: #3ddc97; } .ansi-33 { color: #ffd166; } .ansi-34 { color: #6aa8ff; }
.ansi-35 { color: #c792ea; } .ansi-36 { color: #5ce1e6; } .ansi-37 { color: #eef2f8; } .ansi-b { font-weight: 700; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.settings-grid { display: grid; gap: 18px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-grid .field--bool { display: flex; align-items: center; justify-content: space-between; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; } }
.sticky-save { position: sticky; bottom: 0; margin-top: 22px; padding: 14px 0; background: linear-gradient(0deg, var(--surface) 70%, transparent); display: flex; justify-content: flex-end; gap: 10px; }

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.log li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.log li:last-child { border: 0; }

/* ------------------------------------------------ Shop */
.shop-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.game-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); transition: transform .18s ease, box-shadow .18s, border-color .18s; }
.game-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.game-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 11, 18, .95) 0%, rgba(8, 11, 18, .2) 55%, transparent); }
.game-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--text); }
.game-tile:hover img { transform: scale(1.05); }
.game-tile__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 16px; }
.game-tile h3 { margin: 0 0 4px; font-size: 1.1rem; }
.game-tile p { margin: 0; color: #c6cfdd; font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-tile .price { margin-top: 10px; display: inline-flex; gap: 6px; align-items: baseline; background: rgba(10, 14, 23, .75); border: 1px solid var(--border-2); border-radius: 999px; padding: 4px 12px; font-size: .84rem; }
.game-tile .price b { color: var(--accent-2); font-size: 1rem; }

.cfg { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1000px) { .cfg { grid-template-columns: 1fr; } }
.cfg-sum { position: sticky; top: 20px; }
.cfg-sum .lines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.cfg-sum .lines li { display: flex; justify-content: space-between; gap: 12px; }
.cfg-sum .lines li span:first-child { color: var(--muted); }
.cfg-sum .big { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.cfg-sum .big small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--surface-3) var(--p, 0%)); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .4); transition: transform .12s; }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--accent-soft); }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.range-head b { font-size: 1.5rem; }
.ticks { display: flex; justify-content: space-between; margin-top: 8px; color: var(--dim); font-size: .78rem; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 5px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 8px; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--muted); transition: background .15s, color .15s; text-align: center; }
.seg span small { font-weight: 600; font-size: .74rem; color: var(--green); }
.seg input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.stepper-row:last-child { border-bottom: 0; }
.stepper-row small { display: block; color: var(--dim); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.stepper button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.stepper button:hover:not([disabled]) { background: var(--surface-3); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 54px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pkgs { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.pkgs button { text-align: left; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.pkgs button b { display: block; }
.pkgs button span { color: var(--muted); font-size: .82rem; }
.pkgs button.on { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 600px) { .pkgs { grid-template-columns: 1fr; } }

.co-item { display: flex; gap: 16px; align-items: center; }
.co-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; }

.flash-wrap { position: fixed; z-index: 100; top: 18px; right: 18px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.flash-wrap .alert { box-shadow: var(--shadow); margin: 0; animation: slideIn .25s ease; background: var(--surface-2); }
@keyframes slideIn { from { transform: translateY(-8px); opacity: 0; } }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--surface-3); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-box { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 12px; }
.center-box p { max-width: 520px; color: var(--muted); }

dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 24px; max-width: 480px; width: calc(100% - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
dialog h2 { margin-bottom: 10px; }
dialog .row { justify-content: flex-end; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------ Ergänzungen v2 */
@media (max-width: 900px) { .app { background: var(--bg); } }
.eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.content--wide { max-width: 1400px; }
.imp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px clamp(16px, 3vw, 40px); background: linear-gradient(90deg, #3a2410, #2a1a0c); border-bottom: 1px solid #5a3a1a; color: var(--accent-2); font-size: .92rem; }
.imp-bar form { margin-left: auto; }
.badge--violet { background: rgba(167, 139, 250, .14); color: #c4b5fd; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; vertical-align: middle; }
.icon-btn:hover { color: var(--text); background: var(--surface-3); }
/* Dateimanager */
details.menu { position: relative; display: inline-block; }
details.menu summary { list-style: none; cursor: pointer; }
details.menu summary::-webkit-details-marker { display: none; }
.menu__pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: grid; text-align: left; }
.menu__pop a, .menu__pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; background: none; border: 0; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.menu__pop a:hover, .menu__pop button:hover { background: var(--surface-3); color: var(--text); }
.menu__pop .danger { color: var(--red); }
.menu__pop form { display: contents; }
.files td:first-child a, .files td:first-child span { display: inline-flex; align-items: center; gap: 10px; }
.editor { width: 100%; min-height: 62vh; resize: vertical; background: #070a11; color: #e6edf3; border: 1px solid var(--border); border-radius: 12px; padding: 16px; font: 13px/1.6 var(--mono); tab-size: 4; }
.editor:focus { outline: none; border-color: var(--accent); }
#drop.is-drag { outline: 2px dashed var(--accent); outline-offset: 4px; }
/* Leeres Dashboard: Spiele direkt anbieten */
.quick-games { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.quick-games a { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); color: var(--text); background: var(--surface-2); transition: transform .18s ease, border-color .18s; }
.quick-games a:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.quick-games img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quick-games a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 11, 18, .95), transparent 60%); }
.quick-games span { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font-weight: 800; }
.quick-games small { display: block; font-weight: 600; color: var(--accent-2); }
