/* 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); }

/* ------------------------------------------------ Server-Panel (eigene Seitenleiste) */
.side-back { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .88rem; padding: 6px 10px; border-radius: 8px; margin-bottom: 10px; }
.side-back:hover { color: var(--text); background: var(--surface); }
.side-srv { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-2); background: var(--surface); margin-bottom: 14px; }
.side-srv__img { position: relative; height: 84px; background: var(--surface-2); }
.side-srv__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-srv__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface), rgba(19, 27, 42, .1)); }
.side-srv__body { position: relative; padding: 0 14px 14px; margin-top: -18px; display: grid; gap: 4px; }
.side-srv__body b { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-srv__body small { color: var(--muted); font-size: .8rem; }
.side-srv__body .badge { justify-self: start; margin-top: 4px; }
.side-nav { display: grid; gap: 2px; }
.side-term { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; color: var(--text); }
.side-term span { color: var(--muted); font-size: .8rem; }
.side-term b { font-size: .95rem; text-align: right; }
.side-term small { grid-column: 1 / -1; color: var(--dim); font-size: .76rem; }
.side-term:hover { border-color: var(--border-2); color: var(--text); }
.side { overflow-y: auto; }

.srv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.srv-top h1 { margin: 0 0 8px; }
.meters { margin-bottom: 18px; }
.meters .meter { display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.meter__big { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.ov-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); margin-bottom: 26px; }
@media (max-width: 1000px) { .ov-grid { grid-template-columns: 1fr; } }
.conn { background: linear-gradient(135deg, rgba(255, 138, 61, .12), var(--surface) 55%); border-color: rgba(255, 138, 61, .3); }
.conn__addr { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 12px; padding: 12px 12px 12px 16px; }
.conn__addr .mono { font-size: 1.25rem; font-weight: 700; }
.spec-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spec-tiles div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.spec-tiles small { display: block; color: var(--dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.spec-tiles b { font-size: 1.05rem; }
.ov-h { font-size: 1.1rem; margin: 0 0 14px; }
.quick { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.quick a { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; color: var(--text); transition: transform .15s ease, border-color .15s ease, background .15s; }
.quick a:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface-2); color: var(--text); }
.quick span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 8px; }
.quick small { color: var(--muted); font-size: .82rem; }

.console-page { display: grid; gap: 14px; }
.console-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.console-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.console-stats span { color: var(--muted); font-size: .8rem; display: flex; gap: 6px; align-items: center; }
.console-stats b { font-size: .98rem; font-variant-numeric: tabular-nums; }
.console-stats b small { color: var(--muted); font-weight: 500; }
.console-stats small { color: var(--dim); font-size: .76rem; }
.console-stats .bar { height: 5px; }
@media (max-width: 800px) { .console-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.console--full .console__out { height: calc(100vh - 330px); min-height: 360px; }

/* ------------------------------------------------ Übersicht & Serverliste */
.dash { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1150px) { .dash { grid-template-columns: 1fr; } }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { margin: 0 0 4px; }
.dash-head p { margin: 0; color: var(--muted); }
.srv-rows { display: grid; gap: 14px; }
.srv-row { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.srv-row:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.srv-row__img { position: relative; min-height: 132px; background: var(--surface-2); }
.srv-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.srv-row__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--surface)); }
.srv-row__body { padding: 18px 20px; display: grid; gap: 8px; align-content: center; min-width: 0; }
.srv-row__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.srv-row__title h3 { margin: 0; font-size: 1.15rem; }
.srv-row__title a { color: var(--text); }
.srv-row__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.srv-row__meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
.srv-row__meta span { display: inline-flex; align-items: center; gap: 6px; }
.srv-row__res { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 6px 18px; font-size: .8rem; color: var(--muted); }
.srv-row__res .bar { height: 5px; margin-top: 4px; }
.srv-row__side { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 10px; padding: 18px 20px; border-left: 1px solid var(--border); min-width: 210px; }
.srv-row__side .addr { position: relative; z-index: 1; }
.srv-row__btns { display: flex; gap: 6px; }
.srv-row__btns .btn { padding: 8px 10px; }
@media (max-width: 860px) { .srv-row { grid-template-columns: 1fr; } .srv-row__img { min-height: 110px; } .srv-row__img::after { background: linear-gradient(0deg, var(--surface), transparent); } .srv-row__side { border-left: 0; border-top: 1px solid var(--border); align-items: flex-start; } }
.srv-row--new { grid-template-columns: 1fr; place-items: center; text-align: center; padding: 26px; border-style: dashed; background: transparent; color: var(--muted); gap: 6px; }
.srv-row--new:hover { border-color: var(--accent); color: var(--text); }
.srv-row--new .i { color: var(--accent); }
.dash-side { display: grid; gap: 18px; }
.wallet-card { position: relative; overflow: hidden; border-radius: 18px; padding: 22px; background: linear-gradient(135deg, #ff8a3d, #d9531f 75%); color: #1a0d03; box-shadow: 0 24px 50px -24px rgba(255, 138, 61, .7); }
.wallet-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.wallet-card > * { position: relative; z-index: 1; }
.wallet-card small { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; opacity: .8; }
.wallet-card b { display: block; font-size: 2.2rem; letter-spacing: -.03em; margin: 2px 0 12px; }
.wallet-card p { font-size: .84rem; margin: 0 0 14px; opacity: .85; }
.wallet-card .btn { background: #1a0d03; color: #fff; }
.wallet-card .btn:hover { background: #2a1606; color: #fff; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list small { display: block; color: var(--muted); font-size: .78rem; }
.help-card { background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-strip > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.stat-strip span.ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.stat-strip small { display: block; color: var(--muted); font-size: .8rem; }
.stat-strip b { font-size: 1.3rem; letter-spacing: -.02em; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr; } }

/* ------------------------------------------------ Einstellungen (G-Portal-Stil) */
.cfg-page { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1000px) { .cfg-page { grid-template-columns: 1fr; } }
.cfg-nav { position: sticky; top: 20px; display: grid; gap: 12px; }
@media (max-width: 1000px) { .cfg-nav { position: static; } .cfg-nav nav { display: flex !important; overflow-x: auto; } .cfg-nav nav a { white-space: nowrap; } }
.cfg-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 0 12px; color: var(--muted); }
.cfg-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cfg-search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; padding: 11px 0; min-width: 0; }
.cfg-search input:focus { outline: none; }
.cfg-nav nav { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px; }
.cfg-nav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.cfg-nav nav a span { flex: 1; }
.cfg-nav nav a i { font-style: normal; font-size: .74rem; background: var(--surface-3); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.cfg-nav nav a:hover { background: var(--surface-2); color: var(--text); }
.cfg-nav nav a.on { background: var(--accent-soft); color: var(--accent-2); }
.cfg-nav nav a.is-dirty i { background: var(--accent); color: var(--accent-ink); }
.cfg-group { display: none; }
.cfg-group.on { display: block; }
.is-searching .cfg-group { display: none; }
.is-searching .cfg-group.has-hit { display: block; margin-bottom: 26px; }
.cfg-group > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cfg-group > h2 .i { color: var(--accent); }
.cfg-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .cfg-fields { grid-template-columns: 1fr; } }
.cf { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; align-content: start; transition: border-color .15s, box-shadow .15s; }
.cf:hover { border-color: var(--border-2); }
.cf.is-changed { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cf.is-changed::before { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cf--wide { grid-column: 1 / -1; }
.cf--toggle { padding: 0; }
.cf__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; }
.cf__label { font-weight: 600; font-size: .94rem; line-height: 1.35; }
.cf__label small, .cf__help { display: block; color: var(--dim); font-weight: 500; font-size: .8rem; margin-top: 3px; }
.cf__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf__val { color: var(--accent-2); font-size: 1.02rem; white-space: nowrap; }
.cf__val.is-default { color: var(--text); }
.cf__num { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 8px; padding: 2px 8px; }
.cf__num input { width: 72px; background: none; border: 0; color: var(--text); font: inherit; font-weight: 700; text-align: right; padding: 4px 0; -moz-appearance: textfield; }
.cf__num input::-webkit-inner-spin-button { display: none; }
.cf__num input:focus { outline: none; }
.cf__num em { color: var(--muted); font-style: normal; font-size: .85rem; }
.cf__scale { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: .76rem; margin-top: -2px; }
.cf__reset { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; font: inherit; font-size: .74rem; padding: 2px 10px; cursor: pointer; }
.cf__reset:hover { color: var(--text); border-color: var(--accent); }
.cf .range { height: 6px; }
.cf .range::-webkit-slider-thumb { width: 20px; height: 20px; border-width: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills label { cursor: pointer; flex: 1 1 auto; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: block; text-align: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--muted); font-weight: 700; font-size: .86rem; transition: all .15s; white-space: nowrap; }
.pills label:hover span { border-color: var(--accent); color: var(--text); }
.pills input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px rgba(255, 138, 61, .7); }
.pills input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.cfg-bar { position: fixed; z-index: 60; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; background: var(--surface-2); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 12px 10px 18px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6); animation: slideIn .2s ease; font-weight: 600; }
.cfg-bar[hidden] { display: none; }
@media (min-width: 901px) { .cfg-bar { left: calc(50% + var(--side) / 2); } }

/* ------------------------------------------------ Mod-Launcher */
.mod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .mod-layout { grid-template-columns: 1fr; } }
.mod-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 6px 6px 6px 14px; color: var(--muted); }
.mod-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mod-search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; font-size: 1rem; padding: 8px 0; min-width: 0; }
.mod-search input:focus { outline: none; }
.mod-grid { display: grid; gap: 12px; }
.mod-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; transition: border-color .15s; }
.mod-card:hover { border-color: var(--border-2); }
.mod-card__img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.mod-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mod-card__body { min-width: 0; }
.mod-card__body h3 { margin: 0 0 2px; font-size: 1rem; }
.mod-card__body h3 a { color: var(--text); }
.mod-card__body h3 a:hover { color: var(--accent-2); }
.mod-card__body p { margin: 0 0 4px; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod-card__body small { color: var(--dim); font-size: .78rem; }
.mod-active { position: sticky; top: 20px; }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 70vh; overflow-y: auto; }
.mod-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.mod-list li:hover { background: var(--surface-2); }
.mod-list img, .mod-list__ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.mod-list b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.mod-list small { color: var(--dim); font-size: .76rem; }
.mod-list__btns { display: flex; gap: 2px; }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.icon-btn--red:hover { color: var(--red); }
.card--glow-soft { border-color: rgba(255, 138, 61, .3); }

/* ------------------------------------------------ Spielwechsel */
.sw-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.sw-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); transition: transform .15s, border-color .15s; }
.sw-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sw-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 11, 18, .96), transparent 60%); }
.sw-tile__body { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 4px; }
.sw-tile__body small { color: var(--accent-2); font-weight: 600; font-size: .8rem; }
a.sw-tile:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.sw-tile.is-current { border-color: var(--green); }
.sw-tile.is-off { opacity: .4; filter: grayscale(.8); }
.sw-tile.is-off small { color: var(--muted); }
.sw-tile.is-sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.sw-confirm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; margin-bottom: 26px; padding: 0; overflow: hidden; }
.sw-confirm__img { position: relative; min-height: 220px; }
.sw-confirm__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sw-confirm__body { padding: 22px 22px 22px 0; }
@media (max-width: 800px) { .sw-confirm { grid-template-columns: 1fr; } .sw-confirm__img { min-height: 140px; } .sw-confirm__body { padding: 0 20px 20px; } }

/* ------------------------------------------------ Zeitpläne */
.sch { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.sch.is-off { opacity: .6; }
.sch__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.sch__body { display: grid; gap: 2px; min-width: 0; }
.sch__body small { color: var(--muted); font-size: .84rem; }
.pills--days span { padding: 8px 6px; min-width: 40px; }
[hidden] { display: none !important; }
.pills--days { flex-wrap: nowrap; }
.pills--days label { flex: 1 0 0; min-width: 0; }
.pills--days span { min-width: 0; }

/* ------------------------------------------------ Support */
.nav-dot { margin-left: auto; font-style: normal; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.tk-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; color: var(--text); }
.tk-row:hover { border-color: var(--border-2); color: var(--text); }
.tk-row.is-unread { border-color: var(--accent); }
.tk-row__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-2); }
.tk-row__body b { display: block; }
.tk-row__body small { color: var(--muted); font-size: .82rem; }
.chat { display: grid; gap: 14px; margin-bottom: 18px; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 860px; }
.msg--me { flex-direction: row-reverse; margin-left: auto; }
.msg__bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; min-width: 0; }
.msg--me .msg__bubble { background: linear-gradient(135deg, rgba(255, 138, 61, .14), var(--surface)); border-color: rgba(255, 138, 61, .35); }
.msg--internal .msg__bubble { background: rgba(255, 209, 102, .08); border: 1px dashed rgba(255, 209, 102, .5); }
.msg__meta { display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.msg__meta b { color: var(--text); }
.msg__body { white-space: normal; word-break: break-word; line-height: 1.6; }
.msg .avatar img { width: 20px; height: 20px; }
.msg--team .avatar:not(.avatar--team) { background: var(--surface-3); }
.chat-reply textarea { width: 100%; resize: vertical; }
.players { margin-bottom: 26px; }
.players__count { font-size: 1.1rem; color: var(--muted); }
.players__count b { color: var(--text); font-size: 1.4rem; }
.players__meta { margin: -8px 0 10px; }
.players__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.players__list li { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.players__list li.muted { background: none; border: 0; padding: 0; grid-column: 1 / -1; }
.players__list b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.players__list small { color: var(--dim); font-size: .76rem; }
.ts-enable { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; }
.ts-enable h2 { font-size: 1.5rem; }
.ts-enable p { max-width: 720px; }
.ts-enable__icon { color: var(--accent); opacity: .35; flex: none; }

/* ------------------------------------------------ Große Bildschirme nutzen */
body { font-size: 16px; }
:root { --side: 268px; }
.content { max-width: 1800px; padding: 36px clamp(18px, 3vw, 56px) 72px; }
.content--wide { max-width: 1900px; }
.side nav a, .side-nav a { padding: 11px 14px; font-size: 1rem; }
.btn { font-size: .98rem; }
.btn--sm { font-size: .9rem; }
.card { padding: 24px; }
.dash { grid-template-columns: minmax(0, 1fr) 380px; }
.mod-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.cfg-page { grid-template-columns: 280px minmax(0, 1fr); }
@media (min-width: 1500px) {
  .cfg-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4.meters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1150px) { .dash, .mod-layout { grid-template-columns: 1fr; } }
/* Stufenweise Vergrößerung auf großen Monitoren (Full HD, 1440p, 4K) */
@media (min-width: 1800px) { html { zoom: 1.05; } }
@media (min-width: 2300px) { html { zoom: 1.12; } }
@media (min-width: 3000px) { html { zoom: 1.3; } }
/* Höhenangaben (vh) bei Vergrößerung korrigieren */
:root { --z: 1; }
@media (min-width: 1800px) { :root { --z: 1.05; } }
@media (min-width: 2300px) { :root { --z: 1.12; } }
@media (min-width: 3000px) { :root { --z: 1.3; } }
.side { height: calc(100vh / var(--z)); }
.app, .main { min-height: calc(100vh / var(--z)); }
.console--full .console__out { height: calc(100vh / var(--z) - 370px); }

.editor { min-height: calc(62vh / var(--z)); }
.mod-list { max-height: calc(70vh / var(--z)); }
.auth { min-height: calc(100vh / var(--z)); }

/* ================================================================ Support (Kundenansicht) */
.sp-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 6px 0 26px; }
.sp-hero h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.02em; }
.sp-hero p { margin: 0; color: var(--muted); max-width: 620px; }
.sp-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: .86rem;
  color: #bff3d6; background: rgba(34, 197, 120, .10); border: 1px solid rgba(34, 197, 120, .25); }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.sp-main { display: grid; gap: 28px; min-width: 0; }
.sp-group__h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sp-group__h span { padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: .75rem; letter-spacing: 0; }
.sp-list { display: grid; gap: 10px; }
.sp-row { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px 16px 20px;
  border-radius: 16px; background: var(--card), var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden;
  transition: border-color .15s, background-color .15s; }
.sp-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sp-c, var(--dim)); }
.sp-row:hover { border-color: var(--border-2); background: var(--card), var(--surface-2); color: var(--text); }
.sp-row--open { --sp-c: #f5b942; } .sp-row--answered { --sp-c: #2fd082; } .sp-row--waiting { --sp-c: #5aa8ff; } .sp-row--closed { --sp-c: #4a5568; }
.sp-row.is-unread { border-color: rgba(47, 208, 130, .45); box-shadow: 0 0 0 1px rgba(47, 208, 130, .15), 0 10px 30px -18px rgba(47, 208, 130, .6); }
.sp-row__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--accent-2);
  background: linear-gradient(145deg, rgba(255, 138, 61, .16), rgba(255, 138, 61, .04)); border: 1px solid rgba(255, 138, 61, .18); }
.sp-row--closed .sp-row__icon { color: var(--dim); background: var(--surface-3); border-color: var(--border); }
.sp-row__main { display: grid; gap: 5px; min-width: 0; }
.sp-row__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-row__subject { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row__preview { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-row__preview em { font-style: normal; color: var(--accent-2); }
.sp-row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--dim); font-size: .78rem; }
.sp-row__meta span { display: inline-flex; align-items: center; gap: 5px; }
.sp-row__side { display: flex; align-items: center; gap: 12px; }
.sp-row__chev { color: var(--dim); transition: transform .15s, color .15s; }
.sp-row:hover .sp-row__chev { color: var(--text); transform: translateX(3px); }
.sp-group--done .sp-row { opacity: .78; } .sp-group--done .sp-row:hover { opacity: 1; }
.sp-new { flex: none; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: #06281a; background: #2fd082; }
.sp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 650; white-space: nowrap; }
.sp-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sp-badge--open { color: #f5c25a; background: rgba(245, 185, 66, .12); }
.sp-badge--answered { color: #45dc93; background: rgba(47, 208, 130, .12); }
.sp-badge--waiting { color: #7db9ff; background: rgba(90, 168, 255, .12); }
.sp-badge--closed { color: #8b96a8; background: rgba(139, 150, 168, .12); }
.sp-empty { text-align: center; padding: 46px 24px; border-radius: 20px; border: 1px dashed var(--border-2); background: var(--card); }
.sp-empty__art { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; color: var(--accent-2);
  background: radial-gradient(circle at 30% 25%, rgba(255, 176, 112, .25), rgba(255, 138, 61, .06)); border: 1px solid rgba(255, 138, 61, .25); }
.sp-empty h2 { margin: 0 0 6px; font-size: 1.2rem; } .sp-empty p { margin: 0 auto; color: var(--muted); max-width: 420px; }
.sp-quick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sp-quick__grid a { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .9rem; transition: border-color .15s; }
.sp-quick__grid a:hover { border-color: rgba(255, 138, 61, .4); color: var(--text); }
.sp-quick__grid a .i { color: var(--accent-2); flex: none; }
/* Neues Ticket */
.sp-compose { position: sticky; top: 24px; padding: 22px; border-radius: 20px; background: var(--card), var(--surface);
  border: 1px solid var(--border-2); box-shadow: 0 30px 60px -40px rgba(255, 118, 46, .45); }
.sp-compose__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sp-compose__head h2 { margin: 0; font-size: 1.15rem; }
.sp-compose__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #1a0d04;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); }
.sp-form { display: grid; gap: 16px; }
.sp-field { display: grid; gap: 7px; }
.sp-field > span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.sp-field input, .sp-field select, .sp-field textarea, .sp-reply textarea { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--border-2); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.sp-field textarea, .sp-reply textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus, .sp-reply textarea:focus { outline: none; border-color: rgba(255, 138, 61, .6); box-shadow: 0 0 0 3px rgba(255, 138, 61, .15); }
.sp-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-cats label { position: relative; cursor: pointer; }
.sp-cats input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.sp-cats span { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; font-size: .84rem; font-weight: 600; line-height: 1.2;
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--muted); transition: all .15s; }
.sp-cats span .i { flex: none; color: var(--dim); }
.sp-cats label:hover span { border-color: rgba(255, 255, 255, .22); color: var(--text); }
.sp-cats input:checked + span { color: var(--text); border-color: rgba(255, 138, 61, .65); background: linear-gradient(135deg, rgba(255, 138, 61, .18), rgba(255, 138, 61, .05)); }
.sp-cats input:checked + span .i { color: var(--accent-2); }
.sp-cats input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 138, 61, .3); }
.sp-compose__mail { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: .8rem; color: var(--dim); }
/* Ticket-Ansicht */
.sp-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: .88rem; color: var(--muted); }
.sp-back:hover { color: var(--text); }
.sp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 20px; }
.sp-head__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--accent-2);
  background: linear-gradient(145deg, rgba(255, 138, 61, .18), rgba(255, 138, 61, .04)); border: 1px solid rgba(255, 138, 61, .22); }
.sp-head h1 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.sp-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: .86rem; }
.sp-head__meta a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); } .sp-head__meta a:hover { color: var(--text); }
.sp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 26px; padding: 0; counter-reset: s; }
.sp-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding-right: 14px; font-size: .85rem; color: var(--dim); }
.sp-steps li::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--border-2); }
.sp-steps li:last-child::after { display: none; }
.sp-steps li > span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: transparent; border: 1px solid var(--border-2); }
.sp-steps li.is-done { color: var(--text); }
.sp-steps li.is-done > span { color: #1a0d04; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); border-color: transparent; }
.sp-steps li.is-done::after { background: linear-gradient(90deg, var(--accent), rgba(255, 138, 61, .25)); }
.sp-detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.sp-thread { display: grid; gap: 16px; min-width: 0; }
.sp-day { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: .76rem; font-weight: 600; letter-spacing: .04em; }
.sp-day::before, .sp-day::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sp-msg { display: flex; gap: 12px; align-items: flex-end; max-width: 760px; }
.sp-msg--me { flex-direction: row-reverse; margin-left: auto; }
.sp-msg__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.sp-msg--team .sp-msg__avatar { background: var(--surface-3); border: 1px solid rgba(255, 138, 61, .3); }
.sp-msg--me .sp-msg__avatar { color: #1a0d04; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); }
.sp-msg__bubble { min-width: 0; padding: 14px 16px; border-radius: 18px; background: var(--card), var(--surface); border: 1px solid var(--border-2); }
.sp-msg--team .sp-msg__bubble { border-bottom-left-radius: 6px; }
.sp-msg--me .sp-msg__bubble { border-bottom-right-radius: 6px; background: linear-gradient(135deg, rgba(255, 138, 61, .16), rgba(255, 94, 43, .06)), var(--surface); border-color: rgba(255, 138, 61, .32); }
.sp-msg__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 6px; font-size: .8rem; }
.sp-msg__meta b { color: var(--text); font-weight: 650; } .sp-msg__meta time { color: var(--dim); }
.sp-msg--team .sp-msg__meta b { color: var(--accent-2); }
.sp-msg__body { line-height: 1.6; overflow-wrap: anywhere; }
.sp-solved { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px;
  background: rgba(47, 208, 130, .07); border: 1px solid rgba(47, 208, 130, .25); }
.sp-solved b { display: block; margin-bottom: 2px; } .sp-solved p { margin: 0; color: var(--muted); font-size: .88rem; }
.sp-closed { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.sp-closed p { margin: 0; } .sp-closed .i { color: #45dc93; flex: none; }
.sp-reply { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: var(--card), var(--surface); border: 1px solid var(--border-2); }
.sp-reply label { font-weight: 650; font-size: .95rem; }
.sp-reply__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sp-reply__foot small { color: var(--dim); max-width: 440px; }
.sp-side { position: sticky; top: 24px; padding: 20px; border-radius: 18px; background: var(--card), var(--surface); border: 1px solid var(--border); }
.sp-side h2 { margin: 0 0 14px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sp-side dl { display: grid; gap: 12px; margin: 0; }
.sp-side dt { font-size: .76rem; color: var(--dim); } .sp-side dd { margin: 2px 0 0; font-size: .9rem; }
.sp-side__note { display: flex; gap: 8px; align-items: center; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
@media (max-width: 1100px) { .sp-layout, .sp-detail { grid-template-columns: 1fr; } .sp-compose, .sp-side { position: static; } .sp-side dl { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
@media (max-width: 640px) { .sp-side { padding: 16px; } .sp-side dl { grid-template-columns: 1fr 1fr; gap: 10px; } .sp-side__note { display: none; } }
@media (max-width: 640px) {
  .sp-row { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 14px 14px 16px; gap: 12px; }
  .sp-row__icon { width: 40px; height: 40px; } .sp-row__side { grid-column: 2; justify-content: space-between; } .sp-row__chev { display: none; }
  .sp-head { grid-template-columns: auto minmax(0, 1fr); } .sp-head__icon { width: 44px; height: 44px; } .sp-head__act { grid-column: 1 / -1; }
  .sp-head__act .btn { width: 100%; justify-content: center; }
  .sp-steps li { font-size: .76rem; gap: 6px; padding-right: 6px; } .sp-steps li > span { width: 22px; height: 22px; }
  .sp-msg { gap: 8px; } .sp-msg__avatar { width: 30px; height: 30px; font-size: .8rem; } .sp-msg__bubble { padding: 12px 14px; }
  .sp-reply__foot .btn { width: 100%; justify-content: center; } .sp-cats span { font-size: .8rem; }
}

/* ---------------------------------------------------------------- Support v2: Zendesk-artige Übersicht */
.sp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.sp-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.sp-tabs a span { min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center; font-size: .74rem; background: var(--surface-3); color: var(--text); }
.sp-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.sp-tabs a.on { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-2); }
.sp-tabs a.sp-tabs--answered span { background: rgba(47, 208, 130, .16); color: #45dc93; }
.sp-table { border-radius: 18px; border: 1px solid var(--border); background: var(--card), var(--surface); overflow: hidden; }
.sp-table__head, .sp-table .sp-row { grid-template-columns: 46px minmax(0, 1fr) 150px 170px; }
.sp-table__head { display: grid; gap: 16px; padding: 12px 18px 12px 20px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.sp-table .sp-row { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; }
.sp-table .sp-row:last-child { border-bottom: 0; }
.sp-table .sp-row:hover { background: rgba(255, 255, 255, .025); }
.sp-table .sp-row::before { top: 0; bottom: 0; border-radius: 0; }
.sp-row--progress { --sp-c: #f5b942; } .sp-row--answered { --sp-c: #2fd082; } .sp-row--solved { --sp-c: transparent; }
.sp-row--solved .sp-row__icon { color: var(--dim); background: var(--surface-3); border-color: var(--border); }
.sp-row--solved .sp-row__subject { color: var(--muted); }
.sp-table .sp-row.is-unread { box-shadow: none; background: linear-gradient(90deg, rgba(47, 208, 130, .09), transparent 60%); }
.sp-row.is-unread .sp-row__subject { color: #fff; }
.sp-row__icon { position: relative; }
.sp-row__dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #2fd082; border: 2px solid var(--surface); }
.sp-row__status, .sp-row__last { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-row__lastt { display: grid; line-height: 1.25; min-width: 0; }
.sp-row__lastt b { font-size: .86rem; font-weight: 600; } .sp-row__lastt small { color: var(--dim); font-size: .76rem; }
.sp-who { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #1a0d04;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); }
.sp-who--team { background: var(--surface-3); border: 1px solid rgba(255, 138, 61, .35); }
.sp-table__empty { margin: 0; padding: 34px 20px; text-align: center; color: var(--muted); }
.sp-badge .i { width: 12px; height: 12px; } .sp-badge::before { display: none; }
.sp-badge--progress { color: #f5c25a; background: rgba(245, 185, 66, .12); border: 1px solid rgba(245, 185, 66, .22); }
.sp-badge--answered { color: #45dc93; background: rgba(47, 208, 130, .12); border: 1px solid rgba(47, 208, 130, .28); }
.sp-badge--solved { color: #8b96a8; background: rgba(139, 150, 168, .10); border: 1px solid rgba(139, 150, 168, .2); }
/* Statusbanner im Ticket */
.sp-state { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 0 0 24px; padding: 18px 20px; border-radius: 18px; border: 1px solid; }
.sp-state b { display: block; font-size: 1.05rem; margin-bottom: 3px; } .sp-state p { margin: 0; color: var(--muted); font-size: .92rem; }
.sp-state__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.sp-state--answered { background: linear-gradient(135deg, rgba(47, 208, 130, .12), rgba(47, 208, 130, .03)); border-color: rgba(47, 208, 130, .32); }
.sp-state--answered .sp-state__icon { color: #06281a; background: #2fd082; }
.sp-state--progress { background: linear-gradient(135deg, rgba(245, 185, 66, .10), rgba(245, 185, 66, .02)); border-color: rgba(245, 185, 66, .28); }
.sp-state--progress .sp-state__icon { color: #2a1c02; background: #f5b942; }
.sp-state--solved { background: var(--surface); border-color: var(--border-2); }
.sp-state--solved .sp-state__icon { color: #45dc93; background: rgba(47, 208, 130, .12); }
/* Hinweis auf dem Dashboard */
.sp-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0 0 20px; padding: 14px 18px; border-radius: 16px; color: var(--text);
  background: linear-gradient(135deg, rgba(47, 208, 130, .14), rgba(47, 208, 130, .04)); border: 1px solid rgba(47, 208, 130, .35); }
.sp-alert:hover { color: var(--text); border-color: rgba(47, 208, 130, .6); }
.sp-alert__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #06281a; background: #2fd082; }
.sp-alert b { display: block; } .sp-alert small { color: var(--muted); }
.sp-alert__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: #45dc93; }
@media (max-width: 900px) {
  .sp-table__head { display: none; }
  .sp-table .sp-row { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; }
  .sp-row__status, .sp-row__last { grid-column: 2; }
  .sp-row__status { order: 3; } .sp-row__last { order: 4; }
  .sp-row__last { gap: 8px; } .sp-who { width: 22px; height: 22px; font-size: .66rem; }
  .sp-row__lastt { display: flex; gap: 6px; align-items: baseline; }
}
@media (max-width: 640px) { .sp-state { grid-template-columns: auto minmax(0, 1fr); } .sp-state__jump { grid-column: 1 / -1; justify-content: center; } .sp-alert { grid-template-columns: auto minmax(0, 1fr); } .sp-alert__go { grid-column: 2; } .sp-tabs { width: 100%; } .sp-tabs a { flex: 1; justify-content: center; padding: 8px 6px; font-size: .8rem; } }
/* Feinschliff: Betreff zweizeilig statt hart abgeschnitten, Tabs am Handy wischbar */
.sp-table__head, .sp-table .sp-row { grid-template-columns: 46px minmax(0, 1fr) 130px 150px; }
.sp-table .sp-row__subject { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.sp-table .sp-row__top { align-items: flex-start; flex-wrap: wrap; gap: 6px 10px; }
@media (max-width: 640px) { .sp-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .sp-tabs::-webkit-scrollbar { display: none; } .sp-tabs a { flex: none; white-space: nowrap; padding: 8px 12px; } }

/* ---------------------------------------------------------------- Support v3: Anhänge, Live, Bewertung, Assistent */
.sp-hero__cta { flex: none; }
.sp-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.sp-aside { display: grid; gap: 14px; position: sticky; top: 24px; }
.sp-aside__card { padding: 18px; border-radius: 18px; background: var(--card), var(--surface); border: 1px solid var(--border); }
.sp-aside__card--time { display: flex; gap: 12px; align-items: flex-start; background: rgba(34, 197, 120, .07); border-color: rgba(34, 197, 120, .25); color: #bff3d6; }
.sp-aside__card--time b { display: block; color: var(--text); margin-bottom: 2px; } .sp-aside__card--time small { color: var(--muted); }
.sp-aside__card .sp-group__h { margin-bottom: 10px; }
.sp-quick__grid--col { grid-template-columns: 1fr; gap: 8px; }
.sp-empty .btn { margin-top: 18px; }
/* Verlauf */
.sp-thread__items { display: grid; gap: 16px; }
.sp-ev { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--dim); font-size: .8rem; }
.sp-ev time { opacity: .7; margin-left: 4px; }
.sp-ev .i { color: var(--accent-2); }
.is-new { animation: sp-in .45s ease-out both; }
@keyframes sp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sp-typing { display: flex; align-items: center; gap: 10px; padding: 4px 6px; color: var(--muted); font-size: .85rem; }
.sp-typing__dots { display: inline-flex; gap: 4px; padding: 9px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2); }
.sp-typing__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: sp-dot 1.2s infinite ease-in-out; }
.sp-typing__dots i:nth-child(2) { animation-delay: .15s; } .sp-typing__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sp-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
/* Anhänge */
.sp-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sp-file { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border-2); color: var(--text); max-width: 100%; }
.sp-file:hover { border-color: rgba(255, 138, 61, .5); color: var(--text); }
.sp-file b { display: block; font-size: .84rem; font-weight: 600; } .sp-file small { color: var(--dim); font-size: .74rem; }
.sp-file .i { color: var(--accent-2); flex: none; }
.sp-file--img { padding: 0; overflow: hidden; width: 168px; height: 112px; }
.sp-file--img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.sp-file--img:hover img { transform: scale(1.04); }
.sp-drop { position: relative; display: grid; gap: 8px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--border-2); background: rgba(255, 255, 255, .015); transition: border-color .15s, background .15s; }
.sp-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sp-drop__hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; pointer-events: none; }
.sp-drop__hint .i { color: var(--accent-2); flex: none; }
.sp-drop.is-over { border-color: var(--accent); background: rgba(255, 138, 61, .07); }
.sp-drop.is-bad { border-color: #ff6b6b; }
.sp-drop__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; z-index: 1; pointer-events: none; }
.sp-drop__list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); font-size: .84rem; }
.sp-drop__list li img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.sp-drop__list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sp-drop__list li small { color: var(--dim); }
.sp-drop__list li.is-err { color: #ff8a8a; background: rgba(255, 90, 90, .1); }
/* Bewertung */
.sp-rate { display: grid; gap: 10px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 138, 61, .10), rgba(255, 138, 61, .02)), var(--surface); border: 1px solid rgba(255, 138, 61, .3); }
.sp-rate b { font-size: 1.05rem; } .sp-rate p { margin: -4px 0 4px; color: var(--muted); font-size: .9rem; }
.sp-rate__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-rate__btns label { position: relative; cursor: pointer; } .sp-rate__btns input { position: absolute; inset: 0; opacity: 0; }
.sp-rate__btns span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-2); font-weight: 600; transition: all .15s; }
.sp-rate__btns input:checked + span { border-color: var(--accent); background: rgba(255, 138, 61, .15); }
.sp-rate__btns input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 138, 61, .3); }
.sp-rate textarea { width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); font: inherit; resize: vertical; }
.sp-rate .btn { justify-self: start; }
.sp-rated { padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.sp-ctx { display: grid; gap: 2px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); font-size: .84rem; }
.sp-ctx span { font-size: .72rem; color: var(--dim); } .sp-ctx small { color: #f5c25a; }
/* Assistent */
.wz-head { margin: 0 0 20px; } .wz-head h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.02em; } .wz-head p { margin: 0; color: var(--muted); }
.wz { max-width: 860px; padding: 26px; border-radius: 22px; background: var(--card), var(--surface); border: 1px solid var(--border-2); box-shadow: 0 30px 70px -50px rgba(255, 118, 46, .5); }
.wz-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 26px; padding: 0; }
.wz-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--border-2); color: var(--dim); font-size: .86rem; font-weight: 600; }
.wz-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: .8rem; }
.wz-steps li.on { color: var(--text); border-color: var(--accent); } .wz-steps li.on span { color: #1a0d04; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); }
.wz-steps li.done { color: var(--muted); border-color: rgba(255, 138, 61, .45); } .wz-steps li.done span { color: var(--accent-2); background: rgba(255, 138, 61, .15); }
.wz-pane h2 { margin: 0 0 14px; font-size: 1.1rem; } .wz-pane h2 + * { margin-bottom: 22px; }
.wz-pane .sp-field { margin-bottom: 14px; }
.wz-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.wz-srv { position: relative; cursor: pointer; } .wz-srv input { position: absolute; inset: 0; opacity: 0; }
.wz-srv__card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border-2); transition: all .15s; }
.wz-srv__card img, .wz-srv__ph { flex: none; width: 42px; height: 56px; border-radius: 9px; object-fit: cover; }
.wz-srv__ph { display: grid; place-items: center; background: var(--surface-3); color: var(--accent-2); height: 42px; }
.wz-srv__card > span { flex: 1; min-width: 0; } .wz-srv__card b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-srv__card small { color: var(--dim); font-size: .76rem; }
.wz-srv__card > .i { flex: none; color: transparent; }
.wz-srv:hover .wz-srv__card { border-color: rgba(255, 255, 255, .22); }
.wz-srv input:checked + .wz-srv__card { border-color: rgba(255, 138, 61, .7); background: linear-gradient(135deg, rgba(255, 138, 61, .16), rgba(255, 138, 61, .04)); }
.wz-srv input:checked + .wz-srv__card > .i { color: var(--accent-2); }
.wz-srv input:focus-visible + .wz-srv__card { box-shadow: 0 0 0 3px rgba(255, 138, 61, .3); }
.wz-cats { grid-template-columns: repeat(4, 1fr); }
.wz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.wz-sugg { margin: 4px 0 16px; padding: 14px; border-radius: 14px; background: rgba(90, 168, 255, .07); border: 1px solid rgba(90, 168, 255, .25); }
.wz-sugg__h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #a9cfff; font-size: .88rem; font-weight: 600; }
.wz-sugg__item { display: block; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); margin-top: 6px; }
.wz-sugg__item:hover { border-color: rgba(90, 168, 255, .5); color: var(--text); }
.wz-sugg__item b { display: block; font-size: .9rem; } .wz-sugg__item small { color: var(--muted); font-size: .8rem; }
.wz-ctx { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: #8fe3b6; font-size: .84rem; }
@media (max-width: 1100px) { .sp-aside { position: static; } }
@media (max-width: 640px) { .wz { padding: 18px; } .wz-cats { grid-template-columns: 1fr 1fr; } .wz-steps li { font-size: 0; gap: 0; justify-content: center; } .wz-steps li span { font-size: .8rem; } .sp-hero__cta { width: 100%; justify-content: center; } .sp-file--img { width: calc(50% - 4px); } }
