/* ==========================================================================
   ReHosted – Design-System
   Dunkelgrau, flach, Lime-Akzent. Schrift: Play (Bunny Fonts). Monospace nur in Konsole und Editor.
   ========================================================================== */

:root {
  --bg: #18181b;
  --bg-deep: #131315;
  --bg-elev: #1c1c20;
  --surface: #202024;
  --surface-2: #27272c;
  --surface-3: #303036;
  --line: #2d2d34;
  --line-2: #3b3b44;
  --text: #f2f2f4;
  --text-2: #a9a9b4;
  --text-3: #6f6f7b;
  --accent: #c6f432;
  --accent-ink: #12170a;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 38%, transparent);
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, .12);
  --danger: #ff5d5d;
  --danger-soft: rgba(255, 93, 93, .12);
  --info: #6cb6ff;
  --info-soft: rgba(108, 182, 255, .12);
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --font-display: "Play", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Play", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: var(--font-body);
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --pop: 0 30px 80px -24px rgba(0, 0, 0, .7), 0 0 0 1px var(--line);
  --sidebar-w: 264px;
  --nav-h: 76px;
  color-scheme: dark;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* ---- Scrollbars --------------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---- Typo ------------------------------------------------------------------ */
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.08;
}
.h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.1; }
.h4 { font-size: 1.1rem; line-height: 1.2; letter-spacing: .01em; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--text-2); max-width: 60ch; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .92rem;
  font-weight: 400;


  color: var(--text-2);
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }
.kicker.plain::before { display: none; }
.label-mono { font-size: .86rem; color: var(--text-3); }
.mono, .num { font-variant-numeric: tabular-nums; }
.text { color: var(--text); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.upper { }
.accent { color: var(--accent); }
.text-ok { color: var(--accent); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.prose { color: var(--text-2); max-width: 75ch; }
.prose h1, .prose h2, .prose h3 { font-family: var(--font-display); color: var(--text); margin: 2rem 0 .75rem; line-height: 1.15; }
.prose h2 { font-size: 1.4rem; } .prose h3 { font-size: 1.1rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul { list-style: square; padding-left: 1.25rem; }
.prose ol { list-style: decimal; padding-left: 1.25rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

/* ---- Layout-Helfer ------------------------------------------------------------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; position: relative; }
.container-wide { max-width: 1420px; }
.container-narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-sm { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.row-top { align-items: flex-start; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.right { text-align: right; }
.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.mt-s { margin-top: 8px; } .mt-m { margin-top: 16px; } .mt-l { margin-top: 28px; } .mt-xl { margin-top: 48px; }
.mb-s { margin-bottom: 8px; } .mb-m { margin-bottom: 16px; } .mb-l { margin-bottom: 28px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 34px; height: 34px; stroke-width: 1.5; }

/* ---- Buttons -------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-line: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
  user-select: none;
}
.btn:hover { border-color: var(--text-3); }
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-line: var(--accent);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  z-index: -1;
  transition: left .6s var(--ease);
}
.btn-primary:hover { border-color: var(--accent); box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover::after { left: 120%; }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; --btn-fg: var(--text-2); }
.btn-ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--text); border-color: transparent; }
.btn-outline { --btn-bg: transparent; --btn-line: var(--line-2); }
.btn-outline:hover { --btn-bg: var(--surface); }
.btn-soft { --btn-bg: var(--accent-soft); --btn-fg: var(--accent); --btn-line: var(--accent-line); }
.btn-soft:hover { --btn-bg: color-mix(in srgb, var(--accent) 20%, transparent); border-color: var(--accent); }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-line: rgba(255, 93, 93, .35); }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #1a0505; border-color: var(--danger); }
.btn-warn { --btn-bg: var(--warn-soft); --btn-fg: var(--warn); --btn-line: rgba(255, 181, 71, .35); }
.btn-sm { height: 34px; padding: 0 13px; font-size: .84rem; gap: 7px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: .78rem; gap: 6px; border-radius: 7px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }
.btn-xs.btn-icon { width: 28px; }
.btn-block { width: 100%; }
.btn-notch { border-radius: 0; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: calc(50% - 9px); top: calc(50% - 9px);
  border-radius: 50%;
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.btn-primary.is-loading::before { border-color: var(--accent-ink); border-right-color: transparent; }
.link { color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-muted { color: var(--text-2); }
.link-muted:hover { color: var(--text); }

/* ---- Formulare ---------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label { font-size: .84rem; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label .faint { font-weight: 400; }
.hint { font-size: .8rem; color: var(--text-3); }
.error-text { font-size: .8rem; color: var(--danger); display: flex; gap: 6px; align-items: center; animation: shake .35s var(--ease); }
.input, .select, .textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
}
.textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a9a9b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--bg); }
.input-sm { height: 36px; font-size: .88rem; }
.input.mono, .textarea.mono { font-family: var(--font-mono); font-size: .86rem; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group > .btn, .input-group > .addon { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; height: auto; }
.addon { display: flex; align-items: center; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-left: 0; color: var(--text-2); font-family: var(--font-mono); font-size: .85rem; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.input-reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; color: var(--text-3); border-radius: 8px; }
.input-reveal:hover { color: var(--text); background: var(--surface-2); }
.form-grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .9rem; color: var(--text-2); line-height: 1.45; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 20px; height: 20px; flex: none; margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  background: var(--bg-deep);
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.check .box::after {
  content: "";
  width: 10px; height: 6px;
  border: 2.2px solid var(--accent-ink);
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform .25s var(--ease-spring);
}
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px var(--accent-soft); }
.check:hover .box { border-color: var(--text-3); }
.check a { color: var(--accent); }
.has-error .check .box { border-color: var(--danger); }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 44px; height: 26px; border-radius: 26px; flex: none;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  position: relative;
  transition: background .25s var(--ease), border-color .25s;
}
.switch .track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-2);
  transition: transform .35s var(--ease-spring), background .25s;
}
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--accent-ink); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--accent-soft); }

/* Range-Slider */
.range {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) var(--p), var(--surface-3) var(--p));
}
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-3); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; margin-top: -8px;
  border-radius: 7px;
  background: var(--text);
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 7px; background: var(--text); border: 4px solid var(--accent); }
.range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 8px var(--accent-soft); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px var(--accent-soft); }

/* Segmented Control */
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; position: relative; flex-wrap: wrap; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--text-2); transition: all .2s var(--ease); }
.segmented label:hover span { color: var(--text); background: var(--surface); }
.segmented input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-deep); overflow: hidden; }
.stepper button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--text-2); transition: background .15s, color .15s; }
.stepper button:hover { background: var(--surface-2); color: var(--accent); }
.stepper button:active { transform: scale(.9); }
.stepper input { width: 46px; text-align: center; background: transparent; border: 0; height: 38px; font-family: var(--font-mono); font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

/* ---- Karten ------------------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-width: 0;
}
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.card-title .icon { color: var(--accent); }
.card-body { padding: 22px; }
.card-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; align-items: center; flex-wrap: wrap; }
.card-flat { background: var(--bg-elev); }
.card-link { transition: border-color .25s var(--ease), transform .3s var(--ease), background .25s; }
.card-link:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--surface-2); }
.card-accent { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface); }

/* HUD-Ecken: dezente Gaming-Klammern bei Hover. Sie liegen innen an der Kante (Karten schneiden mit
   overflow: hidden alles außerhalb ab) und sind größer als der Eckradius, damit die Rundung ganz sichtbar ist. */
.hud { --hud: var(--accent); --hud-radius: calc(var(--radius-lg) - 1px); }
.hud::before, .hud::after {
  content: "";
  position: absolute;
  width: calc(var(--hud-radius) + 10px); height: calc(var(--hud-radius) + 10px);
  border: 2px solid var(--hud);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
  z-index: 2;
}
.hud::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: var(--hud-radius); transform: translate(6px, 6px); }
.hud::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: var(--hud-radius); transform: translate(-6px, -6px); }
.hud:hover::before, .hud:hover::after, .hud.is-selected::before, .hud.is-selected::after { opacity: 1; transform: none; }

/* ---- Badges & Status ------------------------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px;
  border-radius: 7px;
  font-size: .8rem; font-weight: 700;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line-2);
}
.badge .icon { width: 13px; height: 13px; }
.badge-accent, .badge-ok, .badge-active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.badge-warn, .badge-suspended, .badge-pending { background: var(--warn-soft); color: var(--warn); border-color: rgba(255, 181, 71, .3); }
.badge-danger, .badge-failed { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 93, 93, .3); }
.badge-info, .badge-installing { background: var(--info-soft); color: var(--info); border-color: rgba(108, 182, 255, .3); }
.badge-muted, .badge-terminated { background: transparent; color: var(--text-3); }

.status { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .88rem; }
.status-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex: none; }
.status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; color: inherit; }
.is-running .status-dot, .status-dot.is-running { background: var(--accent); color: var(--accent); }
.is-running .status-dot::after, .status-dot.is-running::after { animation: ping 1.8s var(--ease) infinite; }
.is-starting .status-dot, .is-stopping .status-dot, .status-dot.is-starting { background: var(--warn); color: var(--warn); }
.is-starting .status-dot::after, .is-stopping .status-dot::after { animation: ping 1s var(--ease) infinite; }
.is-offline .status-dot { background: var(--danger); }
.is-installing .status-dot { background: var(--info); color: var(--info); }
.is-installing .status-dot::after { animation: ping 1.2s var(--ease) infinite; }
.is-suspended .status-dot, .is-unknown .status-dot { background: var(--text-3); }
.is-running .status-label { color: var(--accent); }
.is-starting .status-label, .is-stopping .status-label { color: var(--warn); }
.is-offline .status-label { color: var(--danger); }
.is-installing .status-label { color: var(--info); }

/* ---- Tabellen ---------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table th {
  text-align: left;
  font-size: .84rem;
  font-weight: 400;
  color: var(--text-3);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .92rem; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-compact td { padding: 10px 16px; }
.table a.row-link { font-weight: 600; }
.table a.row-link:hover { color: var(--accent); }

/* ---- Hinweise --------------------------------------------------------------------------------------- */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: .92rem;
}
.notice > .icon { margin-top: 2px; }
.notice strong { display: block; margin-bottom: 2px; }
.notice-ok { border-color: var(--accent-line); background: var(--accent-soft); }
.notice-ok > .icon { color: var(--accent); }
.notice-warn { border-color: rgba(255, 181, 71, .3); background: var(--warn-soft); }
.notice-warn > .icon { color: var(--warn); }
.notice-danger { border-color: rgba(255, 93, 93, .3); background: var(--danger-soft); }
.notice-danger > .icon { color: var(--danger); }
.notice-info { border-color: rgba(108, 182, 255, .3); background: var(--info-soft); }
.notice-info > .icon { color: var(--info); }

/* ---- Toasts --------------------------------------------------------------------------------------------- */
.toasts { position: fixed; z-index: 400; right: 20px; bottom: 20px; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; max-width: min(420px, calc(100vw - 40px)); }
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 14px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--pop);
  font-size: .9rem;
  position: relative;
  overflow: hidden;
  animation: toast-in .5s var(--ease-spring) both;
}
.toast.is-leaving { animation: toast-out .3s var(--ease) both; }
.toast-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.toast-error .toast-icon { background: var(--danger-soft); color: var(--danger); }
.toast-info .toast-icon { background: var(--info-soft); color: var(--info); }
.toast-warn .toast-icon { background: var(--warn-soft); color: var(--warn); }
.toast-text { flex: 1; padding-top: 3px; }
.toast-close { color: var(--text-3); padding: 4px; margin: -2px -4px 0 0; border-radius: 6px; }
.toast-close:hover { color: var(--text); }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); animation: toast-bar linear both; }
.toast-error .toast-bar { background: var(--danger); }
.toast-info .toast-bar { background: var(--info); }

/* ---- Modal ------------------------------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(10, 10, 12, .66);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--pop);
  transform: translateY(16px) scale(.97);
  transition: transform .45s var(--ease-spring);
  overflow: hidden;
}
.modal-lg { max-width: 760px; }
/* Bestell-Auswahl im Kundenpanel */
.order-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 6px; }
.order-option { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-elev); transition: border-color .2s, background .2s; }
a.order-option:hover { border-color: var(--accent); background: var(--surface-2); }
.order-option .oo-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.order-option .oo-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-option .oo-go, .order-option .badge { margin-left: auto; flex: none; }
.order-option .oo-go { color: var(--text-3); transition: color .2s, transform .3s var(--ease); }
a.order-option:hover .oo-go { color: var(--accent); transform: translateX(3px); }
.order-option.is-soon { opacity: .5; cursor: default; }
.order-option.is-soon .oo-icon { background: var(--surface-2); color: var(--text-3); }
@media (max-width: 480px) { .order-picker { grid-template-columns: 1fr; } }
.modal-xl { max-width: 1100px; }
.modal-backdrop.is-open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 0; }
.modal-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.modal-body { padding: 18px 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.modal-icon.is-danger { background: var(--danger-soft); color: var(--danger); }

/* ---- Dropdown ------------------------------------------------------------------------------------------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
  min-width: 230px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--pop);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s var(--ease), transform .25s var(--ease), visibility .18s;
}
.dropdown-menu.left { right: auto; left: 0; transform-origin: top left; }
.dropdown.is-open > .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 9px; font-size: .9rem; color: var(--text-2); text-align: left; transition: background .15s, color .15s; }
.dropdown-item:hover { background: var(--surface-3); color: var(--text); }
.dropdown-item.is-danger { color: var(--danger); }
.dropdown-item.is-danger:hover { background: var(--danger-soft); }
.dropdown-sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.dropdown-head { padding: 10px 11px 8px; }

/* ---- Tabs ------------------------------------------------------------------------------------------------ */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); position: relative; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--text-2); font-weight: 600; font-size: .9rem; white-space: nowrap; position: relative; transition: color .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }
.tab.is-active .icon { color: var(--accent); }
.tab-indicator { position: absolute; bottom: -1px; height: 2px; background: var(--accent); transition: left .35s var(--ease), width .35s var(--ease); pointer-events: none; }
.tab.is-locked { color: var(--text-3); }

/* ---- Diverses -------------------------------------------------------------------------------------------- */
.empty { padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); border: 1px dashed var(--line-2); margin-bottom: 4px; animation: float 4s ease-in-out infinite; }
.empty-icon .icon { width: 28px; height: 28px; }
.empty h3 { font-family: var(--font-display); font-size: 1.15rem; }
.empty p { color: var(--text-2); max-width: 46ch; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; min-height: 14px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent); animation: shimmer 1.4s infinite; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .7s linear infinite; }

.meter { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.meter-fill { height: 100%; border-radius: inherit; background: var(--accent); width: 0; transition: width .8s var(--ease), background .3s; }
.meter-fill.is-warn { background: var(--warn); }
.meter-fill.is-danger { background: var(--danger); }

.avatar {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--line-2);
}
.avatar-sm { width: 30px; height: 30px; border-radius: 9px; font-size: .75rem; }
.avatar-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .9rem; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.copy { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--font-mono); font-size: .88rem; padding: 4px 8px 4px 10px; border-radius: 8px; background: var(--bg-deep); border: 1px solid var(--line-2); transition: border-color .2s, background .2s; max-width: 100%; }
.copy:hover { border-color: var(--accent-line); }
.copy .icon { width: 14px; height: 14px; color: var(--text-3); transition: color .2s, transform .3s var(--ease-spring); }
.copy:hover .icon { color: var(--accent); }
.copy.is-copied { border-color: var(--accent); background: var(--accent-soft); }
.copy.is-copied .icon { color: var(--accent); transform: scale(1.2); }

.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: 9px; font-family: var(--font-mono); font-size: .85rem; color: var(--text-2); border: 1px solid transparent; }
.pagination a:hover { background: var(--surface-2); color: var(--text); }
.pagination .is-current { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: .87rem; font-weight: 600;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { font-family: var(--font-mono); font-size: .72rem; opacity: .6; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Animationen ---------------------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { opacity: .7; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes toast-bar { from { width: 100%; } to { width: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.anim-in { animation: fade-up .6s var(--ease) both; animation-delay: var(--d, 0ms); }

/* ---- Gemeinsame Auswahl-Komponenten (Shop & Panel) ---------------------------------------------- */
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); border: 1px solid var(--line-2); transition: transform .5s var(--ease-spring), background .3s, color .3s; flex: none; }

.runtime-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.runtime-pill { position: relative; cursor: pointer; }
.runtime-pill input { position: absolute; opacity: 0; pointer-events: none; }
.runtime-pill .rp-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-elev); transition: all .25s var(--ease); }
.runtime-pill .rp-days { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.runtime-pill .rp-label { font-size: .82rem; color: var(--text-3); font-family: var(--font-mono); }
.runtime-pill .rp-save { position: absolute; top: -9px; right: -6px; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; transform: rotate(4deg); }
.runtime-pill .rp-save.rp-extra { background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.runtime-pill:hover .rp-box { border-color: var(--text-3); }
.runtime-pill input:checked + .rp-box { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.runtime-pill input:checked + .rp-box .rp-days { color: var(--accent); }
.runtime-pill input:focus-visible + .rp-box { box-shadow: 0 0 0 4px var(--accent-soft); }

.resource { padding: 18px 0; border-bottom: 1px dashed var(--line-2); }
.resource:first-child { padding-top: 0; }
.resource:last-child { border-bottom: 0; padding-bottom: 0; }
.resource-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.resource-label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.resource-label .icon { color: var(--accent); }
.resource-value { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1; transition: transform .2s var(--ease-spring), color .2s; display: inline-block; }
.resource-value.is-bump { transform: scale(1.12); color: var(--accent); }
.resource-value small { font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); font-weight: 400; }
.resource-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .7rem; color: var(--text-3); margin-top: 2px; }
.resource-hint { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-2); padding: 4px 9px; border-radius: 7px; background: var(--surface-2); }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.counter { padding: 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--bg-elev); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.counter .c-label { font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.counter .c-label .icon { color: var(--accent); width: 16px; height: 16px; }
.counter .c-note { font-size: .74rem; color: var(--text-3); }
.counter .stepper { align-self: flex-start; }

.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.loc-card { position: relative; cursor: pointer; display: block; }
.loc-card input { position: absolute; opacity: 0; pointer-events: none; }
.loc-card .lc-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-elev); transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.loc-card:hover .lc-box { border-color: var(--text-3); }
.loc-card input:focus-visible + .lc-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.loc-card input:checked + .lc-box { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.loc-card .lc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.loc-card .lc-name { font-weight: 700; font-size: 1.02rem; line-height: 1.2; color: var(--text); }
.loc-card .lc-city { font-size: .86rem; line-height: 1.3; color: var(--text-2); }
.loc-card .lc-check { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: transparent; transition: all .25s var(--ease); }
.loc-card input:checked + .lc-box .lc-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.game-art {
  --game: var(--accent);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  container-type: size;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 16px),
    radial-gradient(circle at 25% 15%, color-mix(in srgb, var(--art, var(--game)) 70%, transparent), transparent 55%),
    radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--art, var(--game)) 35%, transparent), transparent 50%),
    linear-gradient(160deg, color-mix(in srgb, var(--art, var(--game)) 32%, #18181b), #111113 75%);
}
.game-art span { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 42cqmin, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--art, var(--game)) 80%, #fff); opacity: .55; letter-spacing: -.04em; transform: rotate(-8deg); }
.search-input { position: relative; display: block; width: min(320px, 100%); }
.search-input .input { padding-left: 42px; border-radius: 999px; height: 42px; }
.search-input .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; z-index: 1; }
.reveal-block { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease), opacity .4s; opacity: 0; }
.reveal-block > div { overflow: hidden; min-height: 0; }
.reveal-block.is-open { grid-template-rows: 1fr; opacity: 1; }
.otp-input { font-family: var(--font-mono); font-size: 1.8rem; letter-spacing: .5em; text-align: center; height: 64px; padding-left: .5em; }
.qr-box { width: 200px; height: 200px; padding: 12px; background: #fff; border-radius: 16px; display: grid; place-items: center; flex: none; }
.qr-box img, .qr-box canvas { width: 100%; height: 100%; }
.code-inline { font-family: var(--font-mono); font-size: .85em; padding: 2px 6px; border-radius: 6px; background: var(--bg-deep); border: 1px solid var(--line-2); }

/* ==========================================================================
   Panel-Layout (Kundenbereich & Admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1; }
.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
  padding: 20px 14px 16px;
  z-index: 60;
}
.sidebar-brand { padding: 4px 10px 22px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.nav-label { font-size: .84rem; color: var(--text-3); padding: 18px 12px 8px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 500; font-size: .93rem;
  transition: background .2s, color .2s;
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.is-active { background: var(--surface-2); color: var(--text); }
.nav-item.is-active::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); animation: pop-in .35s var(--ease-spring); }
.nav-item.is-active .icon { color: var(--accent); }
.nav-item .nav-count { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.nav-item .nav-count.is-muted { background: var(--surface-3); color: var(--text-2); }
.sidebar-foot { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
/* Nutzerkarte unten in der Sidebar: Avatar, Name, Credits; Klick öffnet das Konto-Menü nach oben, Plus lädt Credits auf */
.user-card { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.user-card:has(.is-open) { border-color: var(--line-2); }
.user-card-menu { position: static; flex: 1 1 auto; min-width: 0; }
.user-card-who { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 6px 4px 4px; border-radius: 10px; text-align: left; transition: background .2s; }
.user-card-who:hover, .user-card-menu.is-open .user-card-who { background: var(--surface-2); }
.user-card-who .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }
.user-card-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.user-card-name { font-weight: 600; font-size: .9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-credits { font-size: .8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card-credits strong { color: var(--text-2); font-weight: 600; }
.user-card-chev { flex: none; color: var(--text-3); transition: transform .25s var(--ease); }
.user-card-menu.is-open .user-card-chev { transform: rotate(180deg); }
.user-card-plus { flex: none; width: 32px; height: 32px; margin-right: 2px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform .3s var(--ease-spring); }
.user-card-plus:hover { transform: rotate(90deg); }
.dropdown-menu.dropdown-up { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; min-width: 0; transform: translateY(6px) scale(.98); transform-origin: bottom center; }
/* Oben rechts nur noch, solange die Sidebar eingeklappt ist (Handy, Tablet) */
@media (min-width: 981px) { .topbar-account { display: none; } }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 32px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-3); min-width: 0; }
.crumbs a:hover { color: var(--text); }
.crumbs .current { color: var(--text); font-weight: 600; }
.crumbs .icon { width: 14px; height: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--text-2); border: 1px solid transparent; transition: all .2s; }
.icon-btn:hover { background: var(--surface); color: var(--text); border-color: var(--line); }
/* Zähler an der Glocke: eine Ziffer = runder Kreis, ab zwei Ziffern Pille; Ziffer mittig (feste Zeilenhöhe) */
.icon-btn .dot { position: absolute; top: 3px; right: 3px; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .66rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg); pointer-events: none; animation: pop-in .4s var(--ease-spring); }
.menu-toggle { display: none; }
.page { padding: 34px 32px 64px; width: 100%; max-width: 1360px; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.12; }
.page-sub { color: var(--text-2); margin-top: 6px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.section-title .count { font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); font-weight: 500; }

.bar-top { position: relative; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 20px; font-size: .86rem; font-weight: 500; text-align: center; flex-wrap: wrap; }
.bar-impersonate { background: var(--warn); color: #241600; }
.bar-impersonate .btn { --btn-bg: rgba(0, 0, 0, .15); --btn-fg: #241600; --btn-line: transparent; }
.bar-announcement { background: var(--accent); color: var(--accent-ink); }
.bar-verify { background: var(--surface-2); color: var(--text-2); border-bottom: 1px solid var(--line); }

.notif-menu { width: 360px; padding: 0; }
.notif-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.notif-actions { display: flex; align-items: center; gap: 14px; }
.notif-actions [data-notif-clear] { display: inline-flex; align-items: center; gap: 5px; }
.notif-actions [data-notif-clear]:hover { color: var(--danger); }
.notif-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.notif-item { position: relative; border-radius: 10px; transition: background .15s; }
.notif-item:hover { background: var(--surface-3); }
.notif-item .ni-link { display: flex; gap: 12px; padding: 11px 40px 11px 10px; }
.notif-item .ni-remove { position: absolute; top: 9px; right: 6px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.notif-item:hover .ni-remove, .notif-item .ni-remove:focus-visible { opacity: 1; }
.notif-item .ni-remove:hover { background: var(--surface-2); color: var(--text); }
@media (hover: none) { .notif-item .ni-remove { opacity: 1; } }
.notif-item .ni-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.notif-item.is-unread .ni-icon { background: var(--accent-soft); color: var(--accent); }
.notif-item .ni-title { font-weight: 600; font-size: .88rem; color: var(--text); }
.notif-item .ni-body { font-size: .82rem; color: var(--text-2); line-height: 1.4; }
.notif-item .ni-time { font-size: .72rem; color: var(--text-3); margin-top: 3px; font-family: var(--font-mono); }
.notif-empty { padding: 30px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text-3); font-size: .88rem; }
.notif-empty > .icon { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--surface-2); color: var(--text-3); }
.notif-empty > .spinner { margin: 0 auto; }

/* ---- Logo ------------------------------------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-full { display: block; height: 30px; width: auto; flex: none; overflow: visible; }
.logo-full .lf-icon { fill: var(--accent); }
.logo-full .lf-word { fill: var(--text); }
.logo-full .lf-mark { transform-box: fill-box; transform-origin: 50% 55%; transition: transform .5s var(--ease-spring); filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent)); }
.logo-full .lm-play, .logo-full .lm-leg { transform-box: fill-box; transition: transform .45s var(--ease-spring); }
.logo:hover .logo-full .lf-mark { transform: rotate(-6deg) scale(1.05); }
.logo:hover .logo-full .lm-play { transform: translateX(-4px); }
.logo:hover .logo-full .lm-leg { transform: translate(3px, 3px); }

/* ---- Dashboard ---------------------------------------------------------------------------------------------- */
.stat-tile { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
/* Gestreckte Kacheln (z. B. neben der Credits-Kachel): Zahl und Unterzeile unten, keine Luft am Boden */
.stat-tile .st-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; }
.stat-tile .st-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.stat-tile .st-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.stat-tile .st-sub { font-size: .82rem; color: var(--text-3); }
.stat-tile.is-accent .st-icon { background: var(--accent); color: var(--accent-ink); }

.balance-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  isolation: isolate;
}
.balance-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  /* Bildmarke R als ganz leichtes, versetztes Muster */
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .35), transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%23000' fill-opacity='.045'%3E%3Cg transform='translate(30 30) scale(.5)'%3E%3Cpath d='M28 18H60A28 28 0 0 1 60 74H56V58H60A12 12 0 0 0 60 34H28Z'/%3E%3Cpath d='M42 66L58 50V82Z'/%3E%3Crect x='20' y='18' width='16' height='84' rx='2'/%3E%3Cpath d='M64 78H80L100 102H84Z'/%3E%3C/g%3E%3Cg transform='translate(150 150) scale(.5)'%3E%3Cpath d='M28 18H60A28 28 0 0 1 60 74H56V58H60A12 12 0 0 0 60 34H28Z'/%3E%3Cpath d='M42 66L58 50V82Z'/%3E%3Crect x='20' y='18' width='16' height='84' rx='2'/%3E%3Cpath d='M64 78H80L100 102H84Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 132px 132px;
}
.balance-card .bc-label { font-size: .95rem; opacity: .7; font-weight: 600; }
/* Knöpfe brechen bei schmalen Kacheln um, statt abgeschnitten zu werden */
.balance-card > .row-sm { flex-wrap: wrap; }
.balance-card .bc-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.balance-card .btn { --btn-bg: var(--accent-ink); --btn-fg: var(--accent); --btn-line: var(--accent-ink); }
.balance-card .btn-outline { --btn-bg: transparent; --btn-fg: var(--accent-ink); --btn-line: rgba(0, 0, 0, .25); }

.server-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.server-card {
  --game: var(--accent);
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: transform .5s var(--ease), border-color .25s, opacity .8s var(--ease);
}
.cc { display: grid; place-items: center; width: 42px; height: 30px; border-radius: 7px; background: var(--surface-3); font-weight: 700; font-size: .78rem; border: 1px solid var(--line-2); flex: none; }
.server-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.server-card-media { position: relative; height: 112px; overflow: hidden; background: var(--surface-2); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0, 0, 0, .45) 62%, transparent 96%); mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0, 0, 0, .45) 62%, transparent 96%); }
.server-card-media img, .server-card-media .game-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); transform-origin: 50% 30%; }
.server-card:hover .server-card-media img, .server-card:hover .server-card-media .game-art { transform: scale(1.05); }
.server-card-body { padding: 0 20px 18px; margin-top: -26px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.server-card-title { display: flex; align-items: flex-end; gap: 12px; }
.server-card-title h3 { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; }
.game-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--game); color: #0f0f10;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  border: 3px solid var(--surface);
  overflow: hidden;
}
.game-icon img { width: 100%; height: 100%; object-fit: cover; }
.server-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.server-stat { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: .86rem; }
.server-stat .icon { flex: none; color: var(--text-3); }
.server-stat .ss-value { font-weight: 600; color: var(--text); white-space: nowrap; }
.server-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: .82rem; }
.expiry { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.expiry.is-soon { color: var(--warn); }
.expiry.is-over { color: var(--danger); }
.add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 250px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--line-2);
  color: var(--text-2);
  transition: all .3s var(--ease);
}
.add-card .plus { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); transition: all .4s var(--ease-spring); }
.add-card:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.add-card:hover .plus { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg) scale(1.08); border-color: var(--accent); }

.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); transition: background .15s; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.list-row .lr-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-row .lr-sub { font-size: .82rem; color: var(--text-3); }
.amount-pos { color: var(--accent); }
.amount-neg { color: var(--text); }

/* ==========================================================================
   Gameserver-Ansicht
   ========================================================================== */
.srv-hero {
  --game: var(--accent);
  position: relative;
  margin: -34px -32px 0;
  padding: 44px 32px 0;
  overflow: hidden;
  isolation: isolate;
}
.srv-hero-media { position: absolute; inset: 0; z-index: -1; }
.srv-hero-media img, .srv-hero-media .game-art { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); opacity: .5; }
.srv-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent) 0%, var(--bg) 92%), linear-gradient(90deg, var(--bg) 0%, transparent 60%); }
.srv-hero-inner { max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.srv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.srv-ident { display: flex; align-items: center; gap: 18px; min-width: 0; }
/* Profilbild im Kopf aller Dienste: dunkler Glow, nie in Akzent- oder Produktfarbe */
.srv-ident .game-icon { width: 72px; height: 72px; border-radius: 20px; font-size: 1.5rem; border-color: var(--bg); box-shadow: 0 16px 40px -18px #000; }
.srv-name { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1; }
.srv-meta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 10px; font-size: .88rem; color: var(--text-2); }
.srv-meta .sep { width: 4px; height: 4px; background: var(--line-2); border-radius: 50%; }
.power { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.power-btn { --btn-bg: var(--surface); }
.power-btn.is-start:hover { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); border-color: var(--accent); }
.power-btn.is-stop:hover { --btn-bg: var(--danger); --btn-fg: #1a0505; border-color: var(--danger); }
.power-btn.is-restart:hover { --btn-bg: var(--warn); --btn-fg: #241600; border-color: var(--warn); }
.power-btn.is-kill { --btn-fg: var(--danger); }
.power-btn.is-kill .hold-fill { position: absolute; inset: 0; background: var(--danger); transform: scaleX(0); transform-origin: left; z-index: -1; }
.power-btn.is-kill.is-holding .hold-fill { transform: scaleX(1); transition: transform 1.2s linear; }
.power-btn.is-kill.is-holding { --btn-fg: #fff; }

.srv-expiry { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); font-size: .86rem; }
.srv-expiry .meter { width: 140px; }

.srv-tabs { margin-top: 6px; border-bottom: 1px solid var(--line); }
.srv-tabs .tab { padding: 14px 16px; }

.srv-body { padding-top: 28px; }
.console-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.console {
  display: flex; flex-direction: column;
  height: min(640px, calc(100vh - 290px));
  min-height: 420px;
  border-radius: var(--radius-lg);
  background: #0e0e10;
  border: 1px solid var(--line);
  overflow: hidden;
}
.console.is-fullscreen { position: fixed; inset: 16px; z-index: 250; height: auto; box-shadow: var(--pop); }
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid #1f1f23; background: #121215; }
.console-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .78rem; color: var(--text-2); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--text-3); }
.live-badge.is-live { background: var(--accent-soft); color: var(--accent); }
.live-badge.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.console-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  font-family: var(--font-code);
  font-size: 12.8px;
  line-height: 1.6;
  color: #d4d4da;
  white-space: pre-wrap;
  word-break: break-word;
}
.console-line { min-height: 1.6em; animation: line-in .25s var(--ease) both; }
.console-line.is-system { color: var(--accent); }
.console-line.is-error { color: var(--danger); }
.console-line.is-cmd { color: var(--text-3); }
.console-line.is-cmd::before { content: "› "; color: var(--accent); }
@keyframes line-in { from { opacity: 0; transform: translateX(-4px); } }
.console-form { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-top: 1px solid #1f1f23; background: #121215; }
.console-prompt { font-family: var(--font-code); color: var(--accent); font-weight: 700; }
.console-input { flex: 1; background: transparent; border: 0; height: 36px; font-family: var(--font-code); font-size: 13px; color: var(--text); }
.console-input:focus { outline: none; }
.console-input::placeholder { color: var(--text-3); }
.console-input:disabled { opacity: .5; }

.stat-card { padding: 16px 18px 12px; overflow: hidden; }
.stat-card .sc-head { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--text-2); }
.stat-card .sc-head .icon { width: 16px; height: 16px; color: var(--text-3); }
.stat-card .sc-value { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.stat-card .sc-value small { font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); font-weight: 500; }
.stat-card canvas { width: 100%; height: 46px; margin-top: 8px; }
.stat-stack { display: grid; gap: 12px; }

.lock-overlay { position: relative; }
.lock-panel {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 60px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-2);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, .012) 14px 28px), var(--surface);
}
.lock-panel .lp-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.lock-panel h2 { font-family: var(--font-display); font-size: 1.5rem; }
.lock-panel p { color: var(--text-2); max-width: 52ch; }
.install-bar { width: min(420px, 100%); height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; position: relative; }
.install-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--info); border-radius: inherit; animation: indeterminate 1.6s var(--ease) infinite; }
@keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* Dateimanager */
.fm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fm-crumbs { display: flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: .86rem; flex-wrap: wrap; min-width: 0; }
.fm-crumbs button { padding: 5px 8px; border-radius: 7px; color: var(--text-2); }
.fm-crumbs button:hover { background: var(--surface-2); color: var(--text); }
.fm-crumbs button:last-child { color: var(--text); font-weight: 600; }
.fm-crumbs .sep { color: var(--text-3); }
.fm-list { position: relative; min-height: 320px; }
.fm-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 110px 160px 44px;
  align-items: center; gap: 10px;
  padding: 0 16px;
  height: 50px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background .12s;
  animation: fade-up .3s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
.fm-row:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.fm-row.is-selected { background: var(--accent-soft); }
.fm-row .fm-name { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: .92rem; }
.fm-row .fm-name button { text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-row .fm-name button:hover { color: var(--accent); }
.fm-row .fm-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.fm-row .fm-icon.is-dir { background: var(--accent-soft); color: var(--accent); }
.fm-row .fm-size, .fm-row .fm-date { font-family: var(--font-mono); font-size: .8rem; color: var(--text-3); text-align: right; }
.fm-head { height: 40px; cursor: default; animation: none; }
.fm-head:hover { background: transparent; }
.fm-head span { font-size: .8rem; color: var(--text-3); }
.fm-drop {
  position: absolute; inset: 10px; z-index: 5;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 80%, var(--accent) 6%);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--accent);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.fm-list.is-dragging .fm-drop { opacity: 1; }
.fm-selection { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .88rem; animation: fade-up .3s var(--ease); }
.fm-selection .btn { --btn-bg: rgba(0, 0, 0, .14); --btn-fg: var(--accent-ink); --btn-line: transparent; }
.upload-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.upload-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .84rem; }
.upload-item .meter { grid-column: 1 / -1; height: 4px; }

.editor { display: grid; grid-template-columns: auto 1fr; height: min(70vh, 720px); background: #0e0e10; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; font-family: var(--font-code); font-size: 13px; line-height: 1.6; }
.editor-gutter { padding: 12px 10px 12px 14px; text-align: right; color: var(--text-3); background: #121215; border-right: 1px solid #1f1f23; user-select: none; overflow: hidden; white-space: pre; }
.editor-area { width: 100%; height: 100%; resize: none; border: 0; background: transparent; color: #e3e3e8; padding: 12px 14px; font: inherit; line-height: inherit; white-space: pre; overflow: auto; tab-size: 4; }
.editor-area:focus { outline: none; }

/* Rechte-Auswahl */
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.perm {
  position: relative;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.perm input { position: absolute; opacity: 0; pointer-events: none; }
.perm .perm-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; transition: all .25s var(--ease); }
.perm .perm-title { font-weight: 600; font-size: .9rem; }
.perm .perm-desc { font-size: .78rem; color: var(--text-3); line-height: 1.4; }
.perm:hover { border-color: var(--text-3); }
.perm:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.perm:has(input:checked) .perm-icon { background: var(--accent); color: var(--accent-ink); }
.perm-tick { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .25s var(--ease-spring); }
.perm:has(input:checked) .perm-tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.perm-tick .icon { width: 11px; height: 11px; stroke-width: 3; opacity: 0; }
.perm:has(input:checked) .perm-tick .icon { opacity: 1; }

/* Item-Karten (Backups, DBs, Zeitpläne) */
.item-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); animation: fade-up .4s var(--ease) both; animation-delay: var(--d, 0ms); }
.item-card:hover { border-color: var(--line-2); }
.item-card .ic-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.item-card .ic-main { flex: 1; min-width: 0; }
.item-card .ic-title { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-card .ic-sub { font-size: .82rem; color: var(--text-3); display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 2px; }
.item-card .ic-actions { display: flex; gap: 6px; flex: none; }
.limit-bar { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--text-2); }
.limit-bar .meter { width: 120px; }

/* Timeline (Aktivität) */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 7px; width: 9px; height: 9px; border-radius: 3px; background: var(--surface-3); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.tl-item:first-child::before { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tl-title { font-weight: 600; font-size: .92rem; }
.tl-meta { font-size: .8rem; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.tl-detail { font-family: var(--font-mono); font-size: .78rem; color: var(--text-2); margin-top: 4px; padding: 6px 10px; background: var(--bg-elev); border-radius: 8px; border: 1px solid var(--line); display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

/* Tickets */
.thread { display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 14px; animation: fade-up .45s var(--ease) both; animation-delay: var(--d, 0ms); }
.msg-bubble { flex: 1; min-width: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.msg.is-staff .msg-bubble { border-color: var(--accent-line); }
.msg.is-staff .avatar { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.msg.is-internal .msg-bubble { border-style: dashed; border-color: var(--warn); background: var(--warn-soft); }
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.msg-body { padding: 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .94rem; line-height: 1.65; }
.msg-files { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 16px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; background: var(--bg-elev); border: 1px solid var(--line-2); font-size: .82rem; }
.file-chip:hover { border-color: var(--accent-line); color: var(--accent); }
.dropzone { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1.5px dashed var(--line-2); color: var(--text-2); font-size: .88rem; cursor: pointer; transition: all .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.dropzone input { display: none; }

/* Admin */
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.chart-bars .bar { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: var(--surface-3); position: relative; transform-origin: bottom; animation: grow .8s var(--ease) both; animation-delay: var(--d, 0ms); transition: background .2s; }
.chart-bars .bar.is-accent { background: var(--accent); }
.chart-labels { display: flex; gap: 4px; margin-top: 8px; }
.chart-labels span { flex: 1; text-align: center; font-size: .7rem; color: var(--text-3); min-width: 0; overflow: hidden; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--surface-3); margin-left: 8px; }
.legend-dot.is-accent { background: var(--accent); margin-left: 0; }
/* Statistik: Zugänge und Abgänge nebeneinander */
.stats-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stats-line { padding: 7px 0; border-bottom: 1px solid var(--line); }
.stats-line.is-total { border-bottom: 0; padding-top: 10px; }
@media (max-width: 640px) { .stats-split { grid-template-columns: 1fr; } }
.chart-bars .bar:hover { background: var(--text); }
.chart-bars .bar[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 7px; background: var(--text); color: var(--bg); font-size: .74rem; font-family: var(--font-mono); z-index: 5; }
@keyframes grow { from { transform: scaleY(0); } }
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.image-slot { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); }
.image-slot .preview { aspect-ratio: 16 / 9; border-radius: 10px; background: var(--surface-2) center / cover no-repeat; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-3); }
.code-block { font-family: var(--font-code); font-size: .8rem; background: #0e0e10; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre; color: #d4d4da; max-height: 420px; }
.plan-row { display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr .5fr .5fr .5fr .8fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan-row .input { height: 38px; font-size: .86rem; padding: 0 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .console-layout { grid-template-columns: 1fr; }
  .stat-stack { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 284px; transform: translateX(-102%); transition: transform .45s var(--ease); box-shadow: var(--pop); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 55; backdrop-filter: blur(3px); }
  .menu-toggle { display: grid; }
  .topbar { padding: 0 16px; }
  .page { padding: 24px 16px 56px; }
  .srv-hero { margin: -24px -16px 0; padding: 32px 16px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .plan-row { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .form-grid, .perm-grid, .counters { grid-template-columns: 1fr !important; }
  .span-2 { grid-column: auto; }
  .grid-4, .stat-stack { grid-template-columns: 1fr 1fr; }
  .fm-row { grid-template-columns: 30px minmax(0, 1fr) 40px; }
  .fm-row .fm-size, .fm-row .fm-date { display: none; }
  .crumbs .hide-sm, .topbar .hide-sm { display: none; }
  .grid-4 > .balance-card { grid-column: 1 / -1; }
  .srv-expiry { width: 100%; flex-wrap: wrap; }
  .srv-expiry .meter { flex: 1 1 80px; width: auto; }
  .srv-ident .game-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; }
  .page-head .page-actions { width: 100%; }
  .page-head .page-actions > .btn { flex: 1; }
  /* Ab drei Knöpfen nach Inhalt umbrechen statt abschneiden */
  .page-head .page-actions:has(> :nth-child(3)) > .btn { flex: 1 1 auto; padding-inline: 14px; }
  .srv-head { align-items: flex-start; }
  .power { width: 100%; }
  .power .btn { flex: 1; }
  .item-card { flex-wrap: wrap; }
  .image-slot { grid-template-columns: 1fr; }
  .notif-menu { width: calc(100vw - 32px); right: -60px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .table td, .table th { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---- v1.1: Zahlungsarten, Credits, Code-Felder --------------------------------------------- */
.textarea.code, .input.code { font-family: var(--font-code); font-size: .84rem; }
.input-code { letter-spacing: .03em; }
.bc-amount small { font-size: .4em; font-weight: 400; opacity: .75; letter-spacing: 0; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pay-method { position: relative; cursor: pointer; display: block; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method .pm-box { height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--bg-elev); transition: border-color .2s, background .2s, transform .25s var(--ease); }
.pay-method:hover .pm-box { border-color: var(--text-3); transform: translateY(-2px); }
.pay-method input:checked + .pm-box { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pay-method input:focus-visible + .pm-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-method .pm-logo { height: 30px; min-width: 30px; display: grid; place-items: center; }
.pay-method .pm-logo img { height: 28px; width: auto; max-width: 64px; object-fit: contain; }
.pay-method .pm-logo .icon { width: 24px; height: 24px; color: var(--accent); }
.pay-method .pm-logo img + .icon { display: none; }
.pay-method .pm-name { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.pay-method .pm-hint { font-size: .76rem; color: var(--warn); }
.stat-tile.is-warn { border-color: rgba(255, 181, 71, .35); }

/* ---- v1.2: Spiel-Icon-Upload, Spielmodi im Admin ------------------------------------------- */
.image-slot .preview.is-square { aspect-ratio: 1; width: 96px; justify-self: center; border-radius: 20px; }
.image-slot input[type=file] { max-width: 100%; }
.mode-picker { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--bg-elev); }
.mode-eggs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.mode-row { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.mode-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-row-head .input:first-of-type { flex: 1 1 200px; }
.mode-more summary { cursor: pointer; }

/* ---- v1.3: Zahlungsauswahl, Aktionsbonus, Partnerprogramm ----------------------------------- */
.card-foot.contract-foot { justify-content: space-between; gap: 14px; }
.pay-method .pm-note { font-size: .78rem; color: var(--text-3); }
.pay-method.is-credits input:checked + .pm-box .pm-note { color: var(--accent); }
.pay-method.is-disabled { cursor: not-allowed; }
.pay-method.is-disabled .pm-box { opacity: .5; }
.pay-method.is-disabled:hover .pm-box { transform: none; border-color: var(--line-2); }
.promo-banner { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: linear-gradient(90deg, var(--accent-soft), transparent 80%), var(--surface); }
.promo-banner strong { display: block; }
.promo-banner .small { color: var(--text-2); }
.promo-value { flex: none; display: grid; place-items: center; min-width: 74px; height: 54px; padding: 0 12px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.check-list { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li { display: flex; align-items: center; gap: 10px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.repeater-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.repeater-row .stack-sm { min-width: 0; }

/* ---- v1.4: Eltern-PIN in Zahlungsformularen ------------------------------------------------ */
.parent-pin { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.parent-pin .pp-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.parent-pin .pp-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.parent-pin .field { margin: 0; }
.parent-pin.has-error { border-color: var(--danger); background: var(--danger-soft); }
/* ---- v1.5: Länderflaggen ------------------------------------------------------------------- */
.flag { display: block; flex: none; width: 30px; height: 20px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.flag-lg { width: 42px; height: 28px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 16px -8px rgba(0, 0, 0, .7); }
.flag-sm { width: 21px; height: 14px; border-radius: 3px; }
/* ---- v1.7: Hintergrundbild im Kundenpanel (leicht, fest hinter dem Inhalt) --------------------- */
.panel-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.panel-bg img { width: 100%; height: 100%; object-fit: cover; opacity: var(--panel-bg, .12); }
.panel-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 100%); }

/* ---- v1.8: TeamSpeak ----------------------------------------------------------------------- */
.game-icon.ts-icon { color: #fff; }
.game-icon.ts-icon .icon { width: 22px; height: 22px; }
.ts-address { display: flex; flex-direction: column; gap: 6px; }
.ts-address-value { align-self: flex-start; font-size: 1.15rem; font-weight: 700; }
.ts-steps { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.ts-key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.ts-key-value { max-width: 100%; font-size: .9rem; text-align: left; overflow-wrap: anywhere; }
.ts-key form { margin-left: auto; }
.ts-instance-row { align-items: center; gap: 14px; }

/* ---- v1.9: Partnerprogramm je Artikelgruppe ------------------------------------------------- */
.rate-table td { vertical-align: middle; }
.input-group-sm { max-width: 130px; margin-left: auto; }
.input-group-sm .input { min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.rate-list { display: grid; gap: 8px; }
.rate-list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.rate-list-row .rl-values { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.rate-list-row .rl-value { display: flex; flex-direction: column; line-height: 1.2; }
.rate-list-row .rl-value strong { font-family: var(--font-display); font-size: 1.05rem; }

/* ---- v1.10: Ports je Spiel ------------------------------------------------------------------- */
.port-slot-row { align-items: center; padding: 10px 12px; }
.port-slot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px; min-width: 0; }
@media (max-width: 760px) { .port-slot-grid { grid-template-columns: 1fr 1fr; } }

/* ---- v1.12: Rootserver (Betriebssysteme, Zugangsdaten, IP-Listen) ------------------------------ */
.rs-os-group { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-2); margin: 4px 0 10px; }
.rs-os-group .icon { width: 16px; height: 16px; color: var(--text-3); }
.rs-os-grid + .rs-os-group { margin-top: 20px; }
.rs-os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rs-os-card { position: relative; cursor: pointer; display: block; }
.rs-os-card input { position: absolute; opacity: 0; pointer-events: none; }
.rs-os-box { height: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-elev); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.rs-os-card:hover .rs-os-box { border-color: var(--text-3); transform: translateY(-2px); }
.rs-os-card input:checked + .rs-os-box { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.rs-os-card input:focus-visible + .rs-os-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.rs-os-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text-2); }
.rs-os-card input:checked + .rs-os-box .rs-os-icon { background: var(--accent); color: var(--accent-ink); }
.rs-os-icon .icon { width: 18px; height: 18px; }
.rs-os-name { font-weight: 700; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
/* Schmale Bildschirme: drei Spalten bleiben, Symbol über dem Namen */
@media (max-width: 640px) {
  .rs-os-grid { gap: 8px; }
  .rs-os-box { flex-direction: column; justify-content: center; gap: 8px; padding: 12px 8px; text-align: center; }
  .rs-os-name { font-size: .84rem; }
}
/* Rootserver: Glow unter Icons, Lichtschein und Ersatzmotiv (ohne Banner) dunkel statt in der Produktfarbe */
.glow-dark { --glow: #000; --art: #3a3a44; }
.rs-ip-list { display: grid; gap: 8px; }
.rs-ip-row { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.rs-ip-row .rs-ip-address { font-weight: 700; overflow-wrap: anywhere; }
.rs-ip-row .rs-ip-sub { font-size: .84rem; color: var(--text-3); overflow-wrap: anywhere; }
.rs-ip-row form { display: flex; gap: 8px; align-items: center; min-width: 0; }
.rs-ip-row form .input { min-height: 38px; width: auto; flex: 1 1 0; min-width: 0; }
.rs-ip-row form .input.rs-ip-input { flex: 0 1 220px; }
.rs-ip-row form .btn { flex: none; white-space: nowrap; }
.rs-progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rs-progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .6s var(--ease); }
/* ---- v1.13: CPU-Stufe Standard oder Premium ------------------------------------------------------ */
.tier-switch { --tier-index: 0; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--line-2); margin-top: 4px; }
.tier-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 12px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateX(calc(var(--tier-index) * 100%)); transition: transform .45s var(--ease-spring), background .3s, box-shadow .3s; pointer-events: none; }
.tier-switch:has(.tier-premium input:checked) .tier-thumb { transform: translateX(100%); }
.tier-switch:has(.tier-premium input:checked) .tier-thumb, .tier-switch[data-active="premium"] .tier-thumb { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent), 0 12px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.tier-option { position: relative; z-index: 1; cursor: pointer; display: block; }
.tier-option input { position: absolute; opacity: 0; pointer-events: none; }
.tier-box { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 10px; border-radius: 12px; text-align: center; }
.tier-name { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; color: var(--text-2); transition: color .25s; }
.tier-name .icon { width: 16px; height: 16px; color: var(--text-3); transition: color .25s, transform .45s var(--ease-spring); }
.tier-price { font-size: .8rem; color: var(--text-3); }
.tier-option:hover .tier-name { color: var(--text); }
.tier-option input:checked + .tier-box .tier-name { color: var(--text); }
.tier-premium input:checked + .tier-box .tier-name, .tier-premium input:checked + .tier-box .tier-name .icon { color: var(--accent); }
.tier-premium input:checked + .tier-box .tier-name .icon { transform: scale(1.15) rotate(-8deg); }
.tier-option input:focus-visible + .tier-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.tier-desc { margin-top: 10px; font-size: .88rem; color: var(--text-2); min-height: 1.4em; }

/* ---- v1.13: Server-Bereiche als Leiste mit Umbruch statt endloser Tabs ------------------------------ */
.srv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); overflow: visible; margin-bottom: 4px; }
.srv-tabs .tab { padding: 9px 14px; border-radius: 11px; font-size: .88rem; gap: 7px; transition: color .2s, background .2s; }
.srv-tabs .tab .icon { width: 16px; height: 16px; }
.srv-tabs .tab:hover { background: var(--surface-2); }
.srv-tabs .tab.is-active { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.srv-tabs .tab.is-locked { opacity: .6; }

/* ---- v1.13: Konsole mit Kacheln darüber und Infos darunter ---------------------------------------- */
.console-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.srv-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.srv-info { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.srv-info-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.srv-info-icon .icon { width: 18px; height: 18px; }
.srv-info > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.srv-info-label { font-size: .8rem; color: var(--text-3); }
.srv-info-value { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; }
.srv-info-value .copy { font-weight: 600; }

.invoice-pending { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-3); white-space: nowrap; vertical-align: middle; }
.invoice-pending .icon { width: 14px; height: 14px; flex: none; }

/* ---- v1.13: Laufzeit im Kopf des Panels -------------------------------------------------------------- */
.topbar-expiry { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: .84rem; white-space: nowrap; color: var(--text-2); }
.topbar-expiry .icon { width: 16px; height: 16px; flex: none; }
.topbar-expiry .meter { width: 110px; height: 6px; flex: none; }
.topbar-expiry .te-text { overflow: hidden; text-overflow: ellipsis; }
.topbar-expiry .btn { flex: none; }
.topbar-expiry .te-short { display: none; }
@media (max-width: 900px) {
  .topbar-expiry .meter, .topbar-expiry .te-date { display: none; }
}
@media (max-width: 560px) {
  .topbar-expiry { gap: 8px; font-size: .78rem; }
  .topbar-expiry .te-label { display: none; }
  .topbar-expiry .te-short { display: inline; }
  .topbar-expiry > .icon { display: none; }
  .srv-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; }
  .srv-tabs .tab { flex-direction: column; gap: 4px; padding: 9px 4px; font-size: .74rem; text-align: center; white-space: normal; line-height: 1.15; justify-content: center; }
}

@media (max-width: 1100px) {
  .console-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- v1.13.3: Betriebszeit im Kopf neben dem Status -------------------------------------------------- */
.srv-uptime { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.srv-uptime .icon { width: 14px; height: 14px; color: var(--text-3); }

/* ---- v1.13.2: Banner im Server-Kopf randlos über die ganze Breite, unten weich ausgeblendet ---------- */
/* Der Inhalt bleibt bei max. 1360 px, nur das Bild reicht links bis an die Seitenleiste und rechts bis an den Rand. */
.main { overflow-x: clip; }
.srv-hero { --hero-bleed: max(0px, (100vw - var(--sidebar-w) - 1360px) / 2); overflow: visible; isolation: auto; }
.srv-hero-media {
  top: 0; bottom: -160px;
  left: calc(-1 * var(--hero-bleed)); right: calc(-1 * var(--hero-bleed));
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, .55) 66%, rgba(0, 0, 0, .18) 86%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0, 0, 0, .55) 66%, rgba(0, 0, 0, .18) 86%, transparent 100%);
}
.srv-hero-media img, .srv-hero-media .game-art { object-position: center 30%; }
.srv-hero-media::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 100%), linear-gradient(90deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, transparent 55%); }
@media (max-width: 980px) {
  .srv-hero { --hero-bleed: 0px; }
}

@media (max-width: 760px) {
  .rs-ip-row { grid-template-columns: 1fr; }
  .rs-ip-row form { flex-wrap: wrap; }
  .rs-ip-row form .input, .rs-ip-row form .input.rs-ip-input { flex: 1 1 100%; }
}
/* ---- v1.14: Wiki-Inhalte (öffentlich und im Editor) ----------------------------------------------- */
.wiki-content { max-width: none; font-size: 1.01rem; line-height: 1.72; }
.wiki-content > :first-child { margin-top: 0; }
.wiki-content > :last-child { margin-bottom: 0; }
.wiki-content h2, .wiki-content h3, .wiki-content h4 { scroll-margin-top: 96px; }
.wiki-content h2 { margin-top: 2.2rem; padding-top: .2rem; }
.wiki-content h4 { font-family: var(--font-display); color: var(--text); font-size: 1rem; margin: 1.6rem 0 .6rem; }
.wiki-content li { margin-bottom: .35rem; }
.wiki-content li > p { margin: 0; }
.wiki-content ol { padding-left: 1.4rem; }
.wiki-content ol > li::marker { color: var(--accent); font-weight: 700; }
.wiki-content ul > li::marker { color: var(--text-3); }
.wiki-content blockquote { margin: 0 0 1.2rem; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--text); }
.wiki-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }
.wiki-content mark { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 3px; }
.wiki-content code, .wiki-content kbd { font-family: var(--font-code); font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); white-space: break-spaces; }
.wiki-content kbd { font-family: var(--font-body); font-size: .84em; font-weight: 700; border-bottom-width: 2px; padding: 1px 7px; }
.wiki-content pre { position: relative; margin: 0 0 1.25rem; padding: 16px 52px 16px 18px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); overflow-x: auto; color: var(--text); font-family: var(--font-code); font-size: .86rem; line-height: 1.65; white-space: pre; tab-size: 4; }
.wiki-content pre code { padding: 0; border: 0; background: none; font-size: inherit; white-space: inherit; }
.wiki-copy { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); cursor: pointer; opacity: .75; transition: opacity .2s, color .2s, border-color .2s; }
.wiki-content pre:hover .wiki-copy, .wiki-copy:focus-visible { opacity: 1; }
.wiki-copy:hover { color: var(--accent); border-color: var(--accent-line); }
.wiki-content img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.wiki-content figure { margin: 0 0 1.4rem; }
.wiki-content figcaption { margin-top: 8px; font-size: .86rem; color: var(--text-3); text-align: center; }
.wiki-content p > img { margin: .4rem 0; }
.wiki-content table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.wiki-content th, .wiki-content td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.wiki-content th { color: var(--text); background: var(--surface-2); font-weight: 700; }
.wiki-content thead th:first-child { border-top-left-radius: 9px; }
.wiki-content thead th:last-child { border-top-right-radius: 9px; }
.wiki-table, .wiki-editable table { margin: 0 0 1.25rem; overflow-x: auto; }
.wiki-content .callout { position: relative; margin: 0 0 1.25rem; padding: 14px 18px 14px 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); }
.wiki-content .callout > :last-child { margin-bottom: 0; }
.wiki-content .callout::before { content: ""; position: absolute; left: 17px; top: 17px; width: 18px; height: 18px; background: currentColor; color: var(--text-2);
  -webkit-mask: var(--callout-icon) center / contain no-repeat; mask: var(--callout-icon) center / contain no-repeat;
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.wiki-content .callout-info { border-color: rgba(108, 182, 255, .3); background: var(--info-soft); }
.wiki-content .callout-info::before { color: var(--info); }
.wiki-content .callout-tip { border-color: var(--accent-line); background: var(--accent-soft); }
.wiki-content .callout-tip::before { color: var(--accent);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.1V17h6v-.2c0-.8.4-1.6 1-2.1A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.wiki-content .callout-warn { border-color: rgba(255, 181, 71, .3); background: var(--warn-soft); }
.wiki-content .callout-warn::before { color: var(--warn);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E"); }

/* ---- v1.14: Wiki im Admin ------------------------------------------------------------------------------- */
.wiki-admin { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.wiki-admin-cats { position: sticky; top: 88px; }
.wiki-admin-cats .list-row:last-child { border-bottom: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.wiki-admin-cats .list-row.is-active { background: var(--accent-soft); }
.wiki-admin-cats .list-row.is-active .lr-icon { background: var(--accent); color: var(--accent-ink); }
.wiki-admin-cats a.lr-main:hover .lr-title, .wiki-admin-cats a.list-row:hover .lr-title { color: var(--accent); }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); transition: border-color .2s, background .2s, color .2s; }
.icon-pick label:hover span { border-color: var(--text-3); color: var(--text); }
.icon-pick input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.icon-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-pick .icon { width: 18px; height: 18px; }

.wiki-edit { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.wiki-edit-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.wiki-title-input { height: 54px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.wiki-editor.has-error { border-color: rgba(255, 93, 93, .5); }
.wiki-editor > .error-text { padding: 0 16px 12px; }
.wiki-toolbar { position: sticky; top: 68px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.wiki-toolbar .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 5px; }
.wiki-toolbar button { height: 32px; min-width: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-2); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s; }
.wiki-toolbar button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.wiki-toolbar button.is-active { background: var(--accent-soft); color: var(--accent); }
.wiki-toolbar button:disabled, .wiki-toolbar select:disabled { opacity: .35; cursor: default; }
.wiki-toolbar .select { height: 32px; width: auto; padding-top: 0; padding-bottom: 0; font-size: .86rem; border-radius: 8px; }
.wiki-toolbar .tb-kbd { font-size: .74rem; padding: 0 5px; border: 1px solid currentColor; border-bottom-width: 2px; border-radius: 5px; line-height: 1.4; }
.wiki-toolbar .tb-num { font-size: .82rem; }
.wiki-editable { min-height: 460px; padding: 28px 32px; outline: none; cursor: text; }
.wiki-editable:empty::before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; }
.wiki-editable:focus { box-shadow: inset 0 0 0 1px var(--accent-line); }
.wiki-editable table td, .wiki-editable table th { min-width: 80px; border: 1px dashed var(--line-2); }
.wiki-source { display: block; width: 100%; min-height: 460px; border: 0; padding: 22px 24px; background: var(--bg-deep); color: var(--text); font-family: var(--font-code); font-size: .84rem; line-height: 1.6; resize: vertical; outline: none; }
.wiki-editor-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-3); }
.wiki-facts { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.wiki-facts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .88rem; }
.wiki-facts > div > .faint:first-child { width: 72px; flex: none; }
@media (max-width: 1180px) {
  .wiki-edit, .wiki-admin { grid-template-columns: 1fr; }
  .wiki-edit-side, .wiki-admin-cats { position: static; }
}
@media (max-width: 760px) {
  .wiki-toolbar { top: 60px; }
  .wiki-editable { padding: 20px; }
}
/* ---- v1.15.2: Hilfeleiste über den Tickets (Wiki-Suche und Status) ---------------------------------- */
.support-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 18px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.support-strip-wiki { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; flex: 1 1 420px; min-width: 0; }
.support-strip-label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.support-strip-label .icon { width: 16px; height: 16px; color: var(--accent); }
.support-strip-input { position: relative; flex: 1 1 200px; max-width: 340px; }
.support-strip-input > .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.support-strip-input .input { width: 100%; padding-left: 34px; }
.support-strip-status { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; padding: 6px 10px; border-radius: 9px; font-size: .86rem; color: var(--text-2); white-space: nowrap; transition: background .2s, color .2s; }
.support-strip-status:hover { background: var(--surface-2); color: var(--text); }
.support-strip-status > .icon { width: 14px; height: 14px; color: var(--text-3); }
.support-strip-status.is-warn { color: var(--warn); }
.support-strip-status.is-danger { color: var(--danger); }
.support-status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.support-strip-status.is-info .support-status-dot { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.support-strip-status.is-warn .support-status-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.support-strip-status.is-danger .support-status-dot { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
@media (max-width: 640px) {
  .support-strip { padding: 10px 12px; }
  .support-strip-input { max-width: none; }
  .support-strip-status { margin-left: 0; white-space: normal; padding: 4px 0; }
}

/* ---- Wiki-Suchvorschläge (Website und Kundenpanel) -------------------------------------------------- */
.wiki-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; padding: 6px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-elev); box-shadow: var(--pop); max-height: min(460px, 70vh); overflow-y: auto; text-align: left; }
.wiki-suggest.is-floating { position: fixed; right: auto; z-index: 80; }
.wiki-suggest a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 11px; color: var(--text-2); }
.wiki-suggest a:hover, .wiki-suggest a.is-active { background: var(--surface-2); }
.wiki-suggest .ws-meta { font-size: .78rem; color: var(--text-3); }
.wiki-suggest .ws-title { font-weight: 700; color: var(--text); }
.wiki-suggest .ws-snippet { font-size: .85rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wiki-suggest a.ws-all { flex-direction: row; align-items: center; gap: 8px; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; font-size: .88rem; font-weight: 700; color: var(--text); }
.wiki-suggest .ws-empty { padding: 14px; font-size: .9rem; color: var(--text-2); }
.wiki-suggest mark, .wiki-results mark { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 2px; }

/* ---- v1.17: Erinnerungsmails (Admin) -------------------------------------------------------------------- */
.reminder-row-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.reminder-row-head > .btn { margin-left: auto; }
.reminder-days { width: auto; max-width: 340px; }
.reminder-days .input { width: 80px; flex: none; }
.reminder-days .select { min-width: 0; }
.reminder-placeholders { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reminder-placeholders .badge { font-family: var(--font-code); font-size: .76rem; cursor: help; }

/* ---- v1.17: Minecraft-Werkzeuge im Spiel-Editor -------------------------------------------------------- */
.mc-egg-row { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.mc-egg-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

/* ---- v1.17.1: Unterstützer-Seite je Konto, Profilbilder --------------------------------------------- */
.avatar.has-image { padding: 0; overflow: hidden; background: var(--surface-2); }
.avatar.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 52px; height: 52px; border-radius: 15px; font-size: 1.1rem; }
.avatar-xl { width: 72px; height: 72px; border-radius: 20px; font-size: 1.5rem; }
.avatar-xxl { width: 112px; height: 112px; border-radius: 30px; font-size: 2.2rem; }
.avatar-editor { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.support-avatar-row { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.donate-item { align-items: flex-start; }
.donate-item-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.donate-item-msg { overflow-wrap: anywhere; }
.donate-hint-body { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.donate-hint-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 980px) { .support-layout { grid-template-columns: 1fr; } }

/* ---- v1.17: Plugins und Mods (Modrinth) ---------------------------------------------------------------- */
.addon-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.addon-search .search-input { width: auto; flex: 1 1 260px; }
.addon-search .select { width: auto; height: 42px; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.addon-grid > p, .addon-grid > .notice { grid-column: 1 / -1; }
.addon-grid-skeleton { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.addon-grid-skeleton .skeleton { height: 150px; border-radius: 14px; }
.addon-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s; min-width: 0; }
.addon-card:hover { border-color: var(--line-2); }
.addon-card-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.addon-card-head > div { display: flex; flex-direction: column; }
.addon-icon { width: 42px; height: 42px; border-radius: 11px; flex: none; object-fit: cover; background: var(--surface-3); }
.addon-icon.is-empty { display: grid; place-items: center; font-weight: 700; color: var(--text-2); }
.addon-desc { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.addon-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addon-card-foot .tiny { display: inline-flex; align-items: center; gap: 5px; }
.addon-row:last-child { border-bottom: 0; }
.row-center { display: flex; justify-content: center; }

/* ---- v1.17: Minecraft-Version wechseln ----------------------------------------------------------------- */
.version-layout { align-items: start; }
.version-now { display: flex; flex-direction: column; gap: 2px; }
.version-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.version-steps li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-3); }
.version-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.version-steps li.is-active { color: var(--text); }
.version-steps li.is-active::before { border-color: var(--info); border-top-color: transparent; animation: spin .8s linear infinite; }
.version-steps li.is-done { color: var(--text-2); }
.version-steps li.is-done::before { background: var(--accent); border-color: var(--accent); }
.version-steps li.is-skipped { text-decoration: line-through; }
.version-steps li.is-error { color: var(--danger); }
.version-steps li.is-error::before { background: var(--danger); border-color: var(--danger); }
@media (max-width: 980px) { .version-layout { grid-template-columns: 1fr; } }
/* ---- v1.17.2: Minecraft-Erweiterungen als angedocktes Menü unter der Tab-Leiste ------------------- */
.srv-nav { display: flex; flex-direction: column; }
.srv-nav.has-dock .srv-tabs { margin-bottom: 0; position: relative; z-index: 1; }
.srv-dock { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: -1px 18px 4px; padding: 5px 6px 6px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: color-mix(in srgb, var(--surface-2) 88%, transparent); backdrop-filter: blur(8px); }
.srv-dock.is-current { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.srv-dock-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 8px; font-size: .8rem; font-weight: 600; color: var(--text-3); }
.srv-dock-label .icon { width: 14px; height: 14px; color: var(--accent); }
.srv-dock-item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: .84rem; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: color .2s, background .2s; }
.srv-dock-item .icon { width: 15px; height: 15px; }
.srv-dock-item:hover { background: var(--surface-3); color: var(--text); }
.srv-dock-item.is-active { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.srv-dock-item.is-active .icon { color: var(--accent); }
.srv-dock-item.is-locked { opacity: .6; }
@media (max-width: 560px) {
  .srv-dock { align-self: stretch; margin: -1px 10px 4px; }
  .srv-dock-label { width: 100%; padding-bottom: 2px; }
  .srv-dock-item { flex: 1 1 auto; justify-content: center; }
}
/* ---- v1.17.3: Unterstützer-Seite online/deaktiviert, Profilbild als Ablagefeld --------------------- */
.support-status-body { display: flex; align-items: center; gap: 14px; }
.support-status-body > .grow { flex: 1 1 0; }
.support-status-body > form { flex: none; }
@media (max-width: 560px) { .support-status-body { flex-wrap: wrap; } }
.support-status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--text-3); }
.support-status.is-online .support-status-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.support-status.is-offline { border-color: rgba(255, 181, 71, .35); }
.support-status.is-offline .support-status-dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.avatar-editor { align-items: flex-start; flex-wrap: nowrap; }
.avatar-editor > .stack-sm { flex: 1 1 0; }
@media (max-width: 560px) { .avatar-editor { flex-wrap: wrap; } .avatar-editor > .stack-sm { flex-basis: 100%; } }
.avatar-editor .dropzone { min-height: 72px; }
.avatar-editor .dropzone > span { overflow-wrap: anywhere; }
.avatar-editor [data-avatar-preview] { display: contents; }
/* ---- v1.18: Gameserver parken ------------------------------------------------------------------------ */
.park-card { border-color: color-mix(in srgb, var(--info) 30%, var(--line)); }
.park-card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.park-card-body .kv { margin: 4px 0 0; }
@media (max-width: 900px) { .park-card-body { grid-template-columns: 1fr; } }
/* ---- v1.19: Kategorien in Dienste-Listen, Discord-Webhooks ---------------------------------------------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cat-tabs .chip .icon { width: 15px; height: 15px; }
.chip-sm { height: 32px; padding: 0 12px; font-size: .82rem; }
.hook-card.is-paused { border-color: rgba(255, 181, 71, .35); }
.hook-card.is-paused .card-title { color: var(--text-2); }
.hook-events { display: flex; flex-wrap: wrap; gap: 6px; }
.hook-event { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: .8rem; font-weight: 600; }
.hook-event .icon { width: 13px; height: 13px; }
.hook-edit { border-top: 1px solid var(--line); }
.hook-edit > summary { display: flex; align-items: center; gap: 8px; padding: 12px 20px; cursor: pointer; list-style: none; color: var(--text-2); font-size: .88rem; font-weight: 600; }
.hook-edit > summary::-webkit-details-marker { display: none; }
.hook-edit > summary:hover, .hook-edit[open] > summary { color: var(--text); }
.hook-edit > form { padding: 4px 20px 20px; }
.hook-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hook-actions .hook-delete { margin-left: auto; }
.hook-actions .hook-delete .btn:hover { color: var(--danger); }
.hook-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; margin: 10px 0 4px; }
.hook-services .check > span:last-child { overflow-wrap: anywhere; }
.hook-steps { margin: 0; padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); line-height: 1.5; }
.hook-steps li::marker { color: var(--accent); font-weight: 700; }
.hook-scope:has(option[value="all"]:checked) .hook-services { display: none; }
.hook-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 1280px) { .hook-layout { grid-template-columns: minmax(0, 1fr); } }
/* ---- v1.20: Park-Hinweis, Spielmodus-Wechsel, ausgegraute Dock-Einträge, Bestell-Details, Umsatz ------------ */
/* v1.31.1: als Banner über die ganze Breite, Symbol links, Text, Fakten rechts (schmal: Fakten darunter) */
.park-teaser { border-color: color-mix(in srgb, var(--info) 28%, var(--line)); background: linear-gradient(100deg, color-mix(in srgb, var(--info) 8%, var(--surface)), var(--surface) 55%); }
.park-teaser-body { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.park-teaser-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.park-teaser-icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }
.park-teaser-icon .icon { width: 21px; height: 21px; }
.park-teaser-facts { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) {
    .park-teaser-body { align-items: flex-start; gap: 14px; }
    .park-teaser-text { flex-basis: 0; }
    .park-teaser-facts { flex-basis: 100%; }
}
.park-teaser-facts > span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: .8rem; }
.park-teaser-facts strong { color: var(--text); }
.srv-dock-item.is-disabled { opacity: .45; cursor: help; filter: grayscale(1); }
.srv-dock-item.is-disabled:hover { background: transparent; color: var(--text-2); }
.mode-switch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mode-option { position: relative; cursor: pointer; display: block; }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-option .mo-box { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); transition: border-color .2s, background .2s; }
.mode-option:hover .mo-box { border-color: var(--text-3); }
.mode-option input:checked + .mo-box { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.mode-option input:focus-visible + .mo-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.mo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mo-name { font-weight: 700; font-size: 1.02rem; }
.mo-desc { font-size: .84rem; color: var(--text-2); line-height: 1.4; }
.mo-features { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }
.mo-features .hook-event { height: 24px; font-size: .74rem; padding: 0 8px; }
.order-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1180px) { .order-layout { grid-template-columns: minmax(0, 1fr); } }
.order-sum .row-between { padding: 4px 0; }
.order-sum .order-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.history { position: relative; display: flex; flex-direction: column; gap: 0; }
.history-item { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.history-item:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.history-dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.history-dot .icon { width: 15px; height: 15px; }
.history-item.is-ok .history-dot { background: var(--accent-soft); color: var(--accent); }
.history-item.is-warn .history-dot { background: var(--warn-soft); color: var(--warn); }
.history-item.is-danger .history-dot { background: var(--danger-soft); color: var(--danger); }
.history-title { font-weight: 600; font-size: .9rem; }
.history-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .78rem; color: var(--text-3); margin-top: 2px; }
.history-note { font-size: .84rem; color: var(--text-2); margin-top: 3px; overflow-wrap: anywhere; }
.revenue-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 110px; }
.revenue-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.revenue-bar span.bar { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: var(--accent); min-height: 2px; opacity: .85; }
.revenue-bar.is-empty span.bar { background: var(--line-2); opacity: 1; }
.revenue-bar small { font-size: .66rem; color: var(--text-3); }
.row-link-cell a { color: inherit; }
tr.is-clickable { cursor: pointer; }
tr.is-clickable:hover td { background: var(--surface-2); }
/* ---- v1.21: Aktionen ------------------------------------------------------------------------------------------ */
.promo-notice { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--accent-line); background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
.promo-notice-badge { flex: none; display: inline-grid; place-items: center; min-width: 58px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .95rem; white-space: nowrap; }
.promo-notice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.badge-promo, .game-card-top .badge.badge-promo { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 800; backdrop-filter: none; }
.badge-promo .icon { width: 13px; height: 13px; }
.game-card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.price-old { color: var(--text-3); font-size: .86em; margin-right: 2px; text-decoration-thickness: 1.5px; }
.coupon-note { margin: 8px 0 0; line-height: 1.45; }
.promo-float { position: fixed; left: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 12px; max-width: min(460px, calc(100vw - 36px)); padding: 10px 10px 10px 12px; border-radius: 16px; border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); animation: promo-in .5s var(--ease) both; }
.promo-float[hidden] { display: none; }
.promo-float-badge { flex: none; display: inline-grid; place-items: center; height: 36px; padding: 0 10px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.promo-float-text { display: flex; flex-direction: column; min-width: 0; color: var(--text); font-size: .88rem; line-height: 1.35; }
.promo-float-text span { color: var(--text-2); font-size: .82rem; }
.promo-float-text:hover strong { color: var(--accent); }
.promo-float-close { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--text-3); }
.promo-float-close:hover { background: var(--surface-2); color: var(--text); }
@keyframes promo-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) { body:has(.mobile-buybar) .promo-float { bottom: 92px; } }
.promo-running { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.promo-running-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-color: var(--accent-line); color: inherit; }
.promo-running-card > div { flex: 1 1 0; }
.promo-running-card:hover { border-color: var(--accent); }
.promo-scope-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 16px; }
.promo-scope:not(:has(input[value="games"]:checked)) .promo-games { display: none; }
/* v1.21.1: Aktionsband (Hero, Startseite, Menü, Verlängerung) */
.promo-pill { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 5px 8px 5px 5px; border-radius: 999px; border: 1px solid var(--accent-line); background: color-mix(in srgb, var(--bg-elev, var(--surface)) 78%, transparent); backdrop-filter: blur(12px); color: var(--text); font-size: .88rem; line-height: 1.35; text-align: left; transition: border-color .25s, background .25s; }
.promo-pill-badge { flex: none; display: inline-grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .9rem; white-space: nowrap; }
.promo-pill-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.promo-pill-text strong { font-weight: 700; color: var(--text); white-space: nowrap; }
.promo-pill-text span { color: var(--text-2); }
.promo-pill-time { flex: none; display: inline-flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line-2); color: var(--accent); font-size: .82rem; white-space: nowrap; }
.promo-pill-time .icon { width: 14px; height: 14px; }
.promo-pill-go { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); transition: background .25s, color .25s, transform .35s var(--ease-spring); }
.promo-pill:not(:has(.promo-pill-go)) { padding-right: 16px; }
a.promo-pill:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, color-mix(in srgb, var(--bg-elev, var(--surface)) 82%, transparent)); }
a.promo-pill:hover .promo-pill-go { background: var(--accent); color: var(--accent-ink); transform: translateX(2px); }
.promo-pill.is-compact { display: flex; width: 100%; border-radius: 14px; padding: 7px 14px 7px 7px; background: linear-gradient(135deg, var(--accent-soft), transparent 75%); backdrop-filter: none; font-size: .85rem; }
.promo-pill.is-compact .promo-pill-badge { height: 28px; border-radius: 9px; }
.promo-pill.is-compact .promo-pill-time { margin-left: auto; }
.promo-conflict { display: block; margin-top: 6px; }
.promo-conflict-hint { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--warn, #ffb547); }
@media (max-width: 720px) {
  .promo-pill { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-radius: 16px; padding: 8px 10px 8px 8px; }
  .promo-pill .promo-pill-text { flex-direction: column; gap: 1px; }
  .promo-pill .promo-pill-time { grid-column: 2; grid-row: 2; padding-left: 0; border-left: 0; margin-left: 0; }
  .promo-pill .promo-pill-go { grid-column: 3; grid-row: 1 / span 2; }
}/* ---- v1.23: Domains (Kundenpanel, Admin und gemeinsame Teile) -------------------------------------------- */
.ns-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ns-option { position: relative; cursor: pointer; display: block; }
.ns-option input { position: absolute; opacity: 0; pointer-events: none; }
.ns-box { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-deep); transition: border-color .2s, background .2s; }
.ns-box strong { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--text); }
.ns-box strong .icon { width: 16px; height: 16px; color: var(--text-3); }
.ns-option:hover .ns-box { border-color: var(--text-3); }
.ns-option input:checked + .ns-box { border-color: var(--accent); background: var(--accent-soft); }
.ns-option input:checked + .ns-box strong .icon { color: var(--accent); }
.ns-option input:focus-visible + .ns-box { box-shadow: 0 0 0 3px var(--accent-soft); }
.ns-own { display: none; margin-top: 14px; }
form:has(input[name="ns_mode"][value="own"]:checked) .ns-own { display: flex; }
.domain-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.domain-ident { display: flex; align-items: center; gap: 16px; min-width: 0; }
.domain-ident .game-icon { width: 60px; height: 60px; border-radius: 16px; }
.domain-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }
.domain-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.domain-tabs { margin-top: 20px; }
.domain-owner { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); }
.dns-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 2.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dns-grid .input-group .addon { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 44px; }
.dns-aux { opacity: .5; transition: opacity .2s; }
.dns-form:has(option[value="MX"]:checked) .dns-aux, .dns-form:has(option[value="SRV"]:checked) .dns-aux { opacity: 1; }
.dns-table .dns-data { word-break: break-all; max-width: 440px; }
.dns-table .dns-name { white-space: nowrap; }
.domain-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tld-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) repeat(3, minmax(0, 1.15fr)) minmax(0, .85fr); gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tld-row:last-child { border-bottom: 0; }
.tld-head { font-size: .78rem; color: var(--text-3); font-weight: 600; padding-top: 14px; padding-bottom: 10px; }
.tld-name, .tld-price { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tld-flags { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 1100px) {
  .dns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dns-grid .dns-value { grid-column: 1 / -1; }
  .tld-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tld-head { display: none; }
}
@media (max-width: 640px) {
  .ns-choice, .dns-grid { grid-template-columns: minmax(0, 1fr); }
  .domain-ident .game-icon { width: 48px; height: 48px; border-radius: 13px; }
}
.tld-sort { display: inline-flex; align-items: center; gap: 6px; }
.tld-sort .input { width: 56px; height: 30px; padding: 0 8px; }
/* v1.23.1: Endungen im Admin (Berechnen mit Nachkommastellen, Sammelspeichern) */
.tld-markup-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: 12px; align-items: end; }
.tld-custom { display: none; }
.tld-markup:has(option[value="custom"]:checked) .tld-custom { display: flex; }
.tld-markup:not(:has(option[value="custom"]:checked)) .tld-markup-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1.2fr); }
.tld-row.is-enabled .tld-name strong { color: var(--accent); }
@media (max-width: 1100px) { .tld-markup-grid, .tld-markup:not(:has(option[value="custom"]:checked)) .tld-markup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tld-label { display: none; }
.tld-days { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 1100px) { .tld-label { display: block; } .tld-row { padding-top: 16px; padding-bottom: 16px; } }
/* v1.24.0: Aufgaben (Cron) und Migrationsassistent */
.cron-table td { vertical-align: top; }
.cron-table td:first-child { min-width: 220px; }
.cron-table .cron-result { min-width: 140px; max-width: 380px; overflow-wrap: anywhere; }
.migration-table td { vertical-align: top; }
.migration-table td:first-child { min-width: 220px; max-width: 420px; overflow-wrap: anywhere; }
.migration-table td:nth-child(2) { min-width: 180px; }
.migration-new { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.migration-new > summary { cursor: pointer; font-weight: 600; }
.migration-new[open] > summary { margin-bottom: 4px; }
/* v1.25.0: MRR nach Kategorie (Statistik). Farben geprüft gegen die Kartenfläche #202024 (CVD-Abstand >= 8,4, Kontrast >= 3:1) */
.mrr { --c-gameserver: #3987e5; --c-teamspeak: #d95926; --c-rootserver: #199e70; --c-domain: #c98500; }
.mrr-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .mrr-grid { grid-template-columns: 1fr; } }
.mrr-total { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.mrr-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mrr-legend-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mrr-swatch { width: 12px; height: 12px; border-radius: 3px; }
.mrr-swatch.is-gameserver, .mrr-seg.is-gameserver, .mrr-key.is-gameserver { background: var(--c-gameserver); }
.mrr-swatch.is-teamspeak, .mrr-seg.is-teamspeak, .mrr-key.is-teamspeak { background: var(--c-teamspeak); }
.mrr-swatch.is-rootserver, .mrr-seg.is-rootserver, .mrr-key.is-rootserver { background: var(--c-rootserver); }
.mrr-swatch.is-domain, .mrr-seg.is-domain, .mrr-key.is-domain { background: var(--c-domain); }
.mrr-chart { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
.mrr-axis { height: 190px; display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: .7rem; color: var(--text-3); font-variant-numeric: tabular-nums; transform: translateY(-.45em); }
.mrr-plot { position: relative; height: 190px; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--line-2); }
.mrr-grid-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); pointer-events: none; }
.mrr-col { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.mrr-stack { width: 100%; max-width: 24px; height: var(--h); display: flex; flex-direction: column-reverse; gap: 2px; }
.mrr-seg { flex-basis: 0; min-height: 2px; }
.mrr-stack .mrr-seg:last-child { border-radius: 4px 4px 0 0; }
.mrr-col:hover .mrr-stack, .mrr-col:focus-visible .mrr-stack { filter: brightness(1.18); }
.mrr-col:focus-visible { box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 6px; }
.mrr-tip { display: none; position: absolute; bottom: calc(var(--h) + 10px); left: 50%; transform: translateX(-50%); z-index: 5; min-width: 180px; padding: 10px 12px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.mrr-col.is-start .mrr-tip { left: 0; transform: none; }
.mrr-col.is-end .mrr-tip { left: auto; right: 0; transform: none; }
.mrr-col:hover .mrr-tip, .mrr-col:focus-visible .mrr-tip { display: block; }
.mrr-tip-row { display: grid; grid-template-columns: 12px auto minmax(0, 1fr); gap: 8px; align-items: center; font-size: .78rem; margin-top: 4px; white-space: nowrap; }
.mrr-tip-row.is-total { border-top: 1px solid var(--line); padding-top: 5px; margin-top: 6px; }
.mrr-key { width: 12px; height: 2px; border-radius: 2px; }
.mrr-labels { display: flex; gap: 4px; margin: 8px 0 0 64px; }
.mrr-labels span { flex: 1; min-width: 0; text-align: center; font-size: .7rem; color: var(--text-3); overflow: hidden; }
.mrr-table summary { cursor: pointer; }
/* v1.25.0: DNS-Assistent für Minecraft und TeamSpeak */
.dns-server-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dns-server-custom { display: none; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) minmax(0, .6fr); gap: 12px; align-items: start; }
.dns-server:has(select[name="server"] option[value="eigene"]:checked) .dns-server-custom { display: grid; }
@media (max-width: 700px) { .dns-server-grid, .dns-server-custom { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mrr-labels span { overflow: visible; white-space: nowrap; } .mrr-labels span:nth-child(odd) { visibility: hidden; } }
.dns-table .dns-data { min-width: 170px; }
/* v1.25.1: R aus dem Logo als Muster, zur Ecke hin ausgeblendet (wie oben rechts im Footer). Ein Muster für alle Stellen. */
:root { --r-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cg%3E%3Cpath d='M28 18H60A28 28 0 0 1 60 74H56V58H60A12 12 0 0 0 60 34H28Z'/%3E%3Crect x='20' y='18' width='16' height='84' rx='2'/%3E%3Cpath d='M42 66L58 50V82Z'/%3E%3Cpath d='M64 78H80L100 102H84Z'/%3E%3C/g%3E%3Cg transform='translate(120 120)'%3E%3Cpath d='M28 18H60A28 28 0 0 1 60 74H56V58H60A12 12 0 0 0 60 34H28Z'/%3E%3Crect x='20' y='18' width='16' height='84' rx='2'/%3E%3Cpath d='M42 66L58 50V82Z'/%3E%3Cpath d='M64 78H80L100 102H84Z'/%3E%3C/g%3E%3C/svg%3E"); }
/* Guthaben-Kacheln (Übersicht, Credits, Provision, Elternschutz): statt flächigem Muster nur oben rechts */
.balance-card::before {
  inset: 0 0 auto auto; width: min(420px, 88%); height: 200px;
  background: var(--accent-ink); opacity: .09;
  -webkit-mask-image: var(--r-pattern), radial-gradient(ellipse 80% 100% at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 78%);
  -webkit-mask-size: 46px 46px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: var(--r-pattern), radial-gradient(ellipse 80% 100% at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 78%);
  mask-size: 46px 46px, 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}
/* v1.26.1: Hilfe-Blase unten rechts (nur Desktop), Website und Kundenpanel. Innen ohne Kacheln, alles frei. */
.help-bubble { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 1023px) { .help-bubble { display: none; } }
@media print { .help-bubble { display: none; } }
@media (min-width: 1024px) { body:has(.help-bubble) .toasts { bottom: 92px; } }
.help-launcher { position: relative; width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--accent); color: var(--accent-ink); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .2); transition: transform .3s var(--ease-spring); }
.help-launcher:hover { transform: translateY(-2px) scale(1.04); }
.help-launcher:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.help-launcher .icon { width: 24px; height: 24px; }
.help-launcher > span { display: grid; place-items: center; }
.help-icon-close, .help-bubble.is-open .help-icon-open { display: none !important; }
.help-bubble.is-open .help-icon-close { display: grid !important; }
.help-launcher-dot { position: absolute; top: 1px; right: 1px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid var(--bg); background: var(--warn); }
.help-launcher-dot.is-danger { background: var(--danger); }
.help-launcher-dot.is-info { background: var(--info); }
.help-bubble.is-open .help-launcher-dot { display: none; }
.help-panel { position: relative; isolation: isolate; width: 360px; max-height: min(620px, calc(100vh - 120px)); overflow-y: auto; scrollbar-width: thin; padding: 22px 22px 20px; border-radius: var(--radius-xl); border: 1px solid var(--line-2); background: var(--bg-elev); box-shadow: var(--pop); transform-origin: bottom right; animation: help-in .28s var(--ease) both; }
.help-panel[hidden] { display: none; }
@keyframes help-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .help-panel { animation: none; } .help-launcher { transition: none; } }
/* R aus dem Logo oben rechts, wie im Footer */
.help-panel::before {
  content: ""; position: absolute; top: 0; right: 0; width: 100%; height: 160px; z-index: -1; pointer-events: none;
  background: var(--text); opacity: .05;
  -webkit-mask-image: var(--r-pattern), radial-gradient(ellipse 80% 100% at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 78%);
  -webkit-mask-size: 52px 52px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: var(--r-pattern), radial-gradient(ellipse 80% 100% at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 78%);
  mask-size: 52px 52px, 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}
.help-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.help-title { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.help-sub { margin: 4px 0 0; font-size: .88rem; color: var(--text-2); }
.help-close { flex: none; width: 30px; height: 30px; margin: -4px -6px 0 0; border: 0; border-radius: 9px; display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--text-3); transition: color .2s; }
.help-close:hover { color: var(--text); }
.help-search .search-input { width: 100%; }
.help-results { display: flex; flex-direction: column; margin-top: 10px; }
.help-results[hidden] { display: none; }
.help-result { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; color: inherit; outline: none; }
.help-result-title { font-size: .92rem; font-weight: 700; color: var(--text); transition: color .15s; }
.help-result:hover .help-result-title, .help-result:focus-visible .help-result-title { color: var(--accent); }
.help-result-title mark { padding: 0 2px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); }
.help-result-meta { font-size: .78rem; color: var(--text-3); }
.help-result-all { display: inline-flex; align-items: center; gap: 6px; padding: 7px 0; font-size: .86rem; font-weight: 700; color: var(--accent); outline: none; }
.help-result-all:hover, .help-result-all:focus-visible { text-decoration: underline; }
.help-empty { margin: 0; padding: 6px 0; font-size: .88rem; color: var(--text-2); }
.help-links { display: flex; flex-direction: column; margin-top: 14px; }
.help-link { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 0; color: inherit; outline: none; }
.help-link > .icon:first-child { color: var(--accent); }
.help-link strong { display: block; font-size: .95rem; color: var(--text); transition: color .15s; }
.help-link small { display: block; font-size: .8rem; color: var(--text-3); }
.help-link .help-go { color: var(--text-3); transition: transform .2s var(--ease), color .2s; }
.help-link:hover strong, .help-link:focus-visible strong { color: var(--accent); }
.help-link:hover .help-go, .help-link:focus-visible .help-go { color: var(--accent); transform: translateX(3px); }
.help-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: .76rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
/* Status: eine ruhige Zeile, darunter nur bei Bedarf die Vorfälle */
.help-status { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.help-status-head { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: inherit; outline: none; }
.help-status-head strong { font-size: .9rem; font-weight: 700; color: var(--text); }
.help-status-link { font-size: .8rem; color: var(--text-3); transition: color .15s; }
.help-status-head:hover .help-status-link, .help-status-head:focus-visible .help-status-link { color: var(--accent); }
.help-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.help-status.is-info .help-status-head .help-dot, .help-dot.is-info { background: var(--info); }
.help-status.is-warn .help-status-head .help-dot, .help-dot.is-warn { background: var(--warn); }
.help-status.is-danger .help-status-head .help-dot, .help-dot.is-danger { background: var(--danger); }
.help-incidents { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.help-incidents li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: .84rem; color: var(--text-2); overflow-wrap: anywhere; }
.help-incidents li .help-dot { width: 6px; height: 6px; margin-left: 1px; transform: translateY(-1px); }
.help-incidents small { display: block; font-size: .78rem; color: var(--text-3); }
.help-incidents .help-more { display: block; padding-left: 18px; font-size: .8rem; color: var(--text-3); }
/* v1.26.2: Weicher Fade hinter Name, Status, Adresse und Standort im Server-Kopf, damit nichts im Banner untergeht */
.srv-ident { position: relative; }
.srv-ident::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -36px -110px -32px -30px;
  /* v1.29.1: mittig und schwächer, läuft an allen Rändern ganz aus (vorher links sichtbar abgeschnitten) */
  background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--bg) 58%, transparent) 0%, color-mix(in srgb, var(--bg) 36%, transparent) 50%, transparent 100%);
}
.srv-name, .srv-meta { text-shadow: 0 1px 12px color-mix(in srgb, var(--bg) 50%, transparent); }
/* Hilfe-Knopf: Sprechblase mit Fragezeichen etwas kräftiger */
.help-launcher .icon { stroke-width: 2.2; }
/* v1.27.0: derselbe weiche Fade im Kopf der Domains (Meine Domains), wie bei den Servern */
.domain-ident { position: relative; }
.domain-ident::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -30px -100px -28px -30px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, color-mix(in srgb, var(--bg) 54%, transparent) 0%, color-mix(in srgb, var(--bg) 32%, transparent) 50%, transparent 100%);
}
.domain-name, .domain-meta { text-shadow: 0 1px 12px color-mix(in srgb, var(--bg) 50%, transparent); }

/* ---- v1.28: Social-Media-Links der Partner (Formular mit Icon-Auswahl je Zeile, Icon-Links in der Anzeige) ---- */
.social-rows { display: flex; flex-direction: column; gap: 8px; }
.social-row { display: flex; align-items: center; gap: 8px; }
.social-row > .input { flex: 1 1 auto; min-width: 0; }
.social-pick { position: relative; flex: none; }
.social-pick > summary { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 9px 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-deep); color: var(--text-3); cursor: pointer; list-style: none; transition: border-color .2s, color .2s; }
.social-pick > summary::-webkit-details-marker { display: none; }
.social-pick > summary:hover, .social-pick[open] > summary { border-color: var(--text-3); color: var(--text); }
.social-pick > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.social-row:has(input[type="radio"]:checked) .social-current { color: var(--text); }
.social-current { display: grid; place-items: center; }
.social-current .icon { width: 19px; height: 19px; }
.social-pick > summary > .icon-sm { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.social-pick[open] > summary > .icon-sm { transform: rotate(180deg); }
.social-pick-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: grid; grid-template-columns: repeat(5, 38px); gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
.partner-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.partner-social { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); transition: border-color .2s, color .2s, background .2s; }
.partner-social .icon { width: 16px; height: 16px; }
.partner-social:hover, .partner-social:focus-visible { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
/* ---- v1.29: Meine Server anheften, umbenennen, verschieben ---------------------------------------------- */
.server-slot { position: relative; display: flex; flex-direction: column; min-width: 0; }
.server-slot > .server-card { flex: 1 1 auto; }
.server-tools { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; transition: transform .5s var(--ease), opacity .6s var(--ease); }
.server-slot:has(> .server-card[data-reveal]:not(.is-visible)) .server-tools { opacity: 0; }
.server-slot:hover .server-tools { transform: translateY(-3px); }
.server-tool { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(8px); cursor: pointer; transition: color .2s, border-color .2s, opacity .2s; }
.server-tool .icon { width: 16px; height: 16px; }
.server-tool:hover, .server-tool:focus-visible, .server-tools .dropdown.is-open .server-more { color: var(--text); border-color: var(--text-3); opacity: 1; }
.server-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.server-pin { display: none; color: var(--accent); }
.server-slot.is-pinned .server-pin { display: grid; }
.server-pin:hover { color: var(--accent); }
.server-grip { display: none; cursor: grab; touch-action: none; user-select: none; }
.server-tools .dropdown-menu { min-width: 190px; }
@media (hover: hover) {
  .server-more { opacity: 0; }
  .server-slot:hover .server-more, .server-slot:focus-within .server-more { opacity: 1; }
}
.arrange-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .88rem; color: var(--text-2); }
.arrange-hint .icon { color: var(--text-3); }
.server-grid.is-arranging .server-slot > .server-card { pointer-events: none; }
.server-grid.is-arranging .server-slot { cursor: grab; }
.server-grid.is-arranging .server-slot::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); border: 1px dashed var(--line-2); pointer-events: none; }
.server-grid.is-arranging .server-grip { display: grid; }
.server-grid.is-arranging .server-tools .dropdown, .server-grid.is-arranging .add-card { display: none; }
.server-grid.is-arranging .server-pin { pointer-events: none; }
.server-slot.is-dragging { z-index: 5; cursor: grabbing; }
.server-slot.is-dragging > .server-card { border-color: var(--accent-line); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); transform: scale(1.02); }
.server-slot.is-dragging::after { border-color: transparent; }
.server-slot.is-dragging .server-grip { cursor: grabbing; color: var(--accent); border-color: var(--accent-line); }
/* ---- v1.29.4: Guthaben-Kacheln (Übersicht, Credits, Provision, Elternschutz) grau wie die übrigen Kacheln.
   Nur das R-Muster oben rechts, das Symbol und der Hauptknopf tragen die Akzentfarbe. ------------------------- */
.balance-card { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.balance-card::before { background: var(--accent); opacity: .14; }
.balance-card .bc-label { font-size: .86rem; font-weight: 400; opacity: 1; color: var(--text-3); }
.balance-card > .row-between > .icon { width: 36px; height: 36px; padding: 9px; border-radius: 11px; background: var(--surface-2); color: var(--accent); }
.balance-card .bc-amount small { color: var(--text-3); opacity: 1; }
.balance-card > .small { color: var(--text-3); }
.balance-card .btn { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-line: var(--accent); }
.balance-card .btn-outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-line: var(--line-2); }
.balance-card .btn-outline:hover { --btn-line: var(--text-3); }/* v1.29.5: Plus-Knopf oben rechts in der Credits-Kachel (statt Knöpfen unten), Inhalt unten bündig wie die Nachbarkacheln */
.balance-card { padding: 20px 22px; gap: 12px; }
.balance-card > .row-between { margin-bottom: auto; }
.balance-card .bc-add { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transition: transform .3s var(--ease-spring); }
.balance-card .bc-add .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.balance-card .bc-add:hover { transform: scale(1.06); }
.balance-card .bc-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ---- v1.30: Firma und Rechnungsadresse optional zum Ausklappen (Registrierung, Kasse), Name und Firma gesperrt ---- */
.optional-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; list-style: none; transition: border-color .2s, color .2s; }
.optional-toggle::-webkit-details-marker { display: none; }
.optional-toggle:hover { border-color: var(--text-3); color: var(--text); }
.optional-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.optional-toggle .icon { color: var(--accent); transition: transform .25s var(--ease); }
.optional-toggle .faint { font-weight: 400; }
.optional-toggle[aria-expanded="true"] .icon, .optional-block[open] > .optional-toggle .icon { transform: rotate(45deg); }
.optional-block[open] > .optional-toggle { border-style: solid; color: var(--text); }
.optional-block .optional-body { padding-top: 14px; }
.billing-optional .reveal-block.is-open { margin-top: 12px; }
.billing-optional[data-required="1"] .reveal-block.is-open, .billing-optional .optional-toggle[hidden] + .reveal-block.is-open { margin-top: 0; }
.locked-note { display: flex; align-items: center; gap: 6px; margin: 0; }
.locked-note .icon { flex: none; }
/* ---- v1.30.2: Serverkarten kompakter (Meine Server, Übersicht) ------------------------------------------------- */
.server-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.server-card-media { height: 76px; }
.server-card-body { padding: 0 16px 14px; margin-top: -22px; gap: 10px; }
.server-card-title { gap: 10px; }
.server-card-title .game-icon { width: 44px; height: 44px; border-radius: 12px; font-size: .95rem; border-width: 2px; }
.server-card-title h3 { font-size: 1.08rem; }
.server-stats { gap: 4px 14px; }
.server-stat { font-size: .82rem; }
.server-stat .icon { width: 15px; height: 15px; }
.server-card-foot { padding-top: 10px; font-size: .8rem; }
.add-card { min-height: 180px; gap: 10px; }
.add-card .plus { width: 44px; height: 44px; border-radius: 13px; }
.server-tools { top: 8px; right: 8px; gap: 5px; }
.server-tool { width: 30px; height: 30px; border-radius: 9px; }
.server-tool .icon { width: 15px; height: 15px; }
/* ---- v1.31.3: R aus dem Logo oben rechts in der Konsole (wie in der Hilfe-Blase), Kopfzeile lässt es durchscheinen */
.console { position: relative; isolation: isolate; }
.console::before {
  content: ""; position: absolute; top: 0; right: 0; width: min(560px, 62%); height: 220px; z-index: -1; pointer-events: none;
  background: var(--text); opacity: .05;
  -webkit-mask-image: var(--r-pattern), radial-gradient(ellipse 80% 100% at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 78%);
  -webkit-mask-size: 52px 52px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: var(--r-pattern), radial-gradient(ellipse 80% 100% at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 78%);
  mask-size: 52px 52px, 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}
.console-head { background: color-mix(in srgb, #121215 62%, transparent); }
/* Kacheln mit Balken statt Verlauf: Balken unten bündig wie die Linien daneben, keine Lücke darunter */
.stat-card { display: flex; flex-direction: column; }
.stat-card > .meter { margin-top: auto; }
.stat-card:has(> .meter) > .sc-value { margin-bottom: 10px; }

/* ---- v1.31.4: Team-Profilbild (R auf Akzentfläche wie das Favicon) und Ticket mit Seitenspalte -------------- */
.avatar.avatar-team { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); padding: 0; overflow: hidden; }
.avatar-team svg { display: block; width: 100%; height: 100%; }
.avatar-team .at-fg { fill: currentColor; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ticket-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.ticket-side .kv dd .badge { vertical-align: middle; }
.ticket-team-body { display: flex; gap: 14px; align-items: flex-start; }
.ticket-team-body .avatar { width: 44px; height: 44px; border-radius: 13px; }
.ticket-team-body .link { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1180px) {
  .ticket-layout { grid-template-columns: minmax(0, 1fr); }
  .ticket-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ---- v1.32: Tickets im Team übergeben (Eintrag im Verlauf, Formular im Chat, Karte in der Übersicht) ------ */
.msg-event { display: flex; gap: 14px; align-items: flex-start; animation: fade-up .45s var(--ease) both; animation-delay: var(--d, 0ms); }
.msg-event-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); border: 1px dashed var(--line-2); }
.msg-event-main { flex: 1; min-width: 0; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.msg-event-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--text-2); }
.msg-event-line strong { color: var(--text); }
.msg-event-note { padding: 10px 14px; border-radius: 12px; border-left: 3px solid var(--accent); background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.6; }
.handover > summary { list-style: none; }
.handover > summary::-webkit-details-marker { display: none; }
.handover-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; border-radius: inherit; transition: background .2s; }
.handover-head:hover { background: var(--surface-2); }
.handover-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.handover-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.handover-chev { flex: none; color: var(--text-3); transition: transform .25s var(--ease); }
.handover[open] .handover-chev { transform: rotate(180deg); }
.handover[open] .handover-head { border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.handover-body { padding: 18px; }
.handover-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.handover-foot .tiny { flex: 1 1 260px; }
.assigned-card { border-color: var(--accent-line); }
.assigned-note { margin-top: 6px; padding: 6px 10px; border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--surface-2); font-size: .84rem; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
/* R aus dem Logo oben rechts in Detail-Karten (Ticket), wie in der Hilfe-Blase */
.card-rmark { isolation: isolate; overflow: hidden; }
.card-rmark::before {
  content: ""; position: absolute; top: 0; right: 0; width: 100%; height: 170px; z-index: -1; pointer-events: none;
  background: var(--text); opacity: .05;
  -webkit-mask-image: var(--r-pattern), radial-gradient(ellipse 80% 100% at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 78%);
  -webkit-mask-size: 52px 52px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-image: var(--r-pattern), radial-gradient(ellipse 80% 100% at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 78%);
  mask-size: 52px 52px, 100% 100%;
  mask-repeat: repeat, no-repeat;
  mask-composite: intersect;
}

/* ---- v1.34: Wie lange ein Rabatt gilt (Kasse, Laufzeit-Tab, Admin) ------------------------------------------ */
.sl-rule { margin: -2px 0 2px; padding-left: 26px; font-size: .78rem; line-height: 1.4; color: var(--text-3); }
.kv dd.lock-row { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.kv dd.lock-row .badge { align-self: flex-end; }
.lock-notice { margin: 0; }
.lock-field { display: flex; flex-direction: column; gap: 10px; }
.lock-options { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.lock-periods-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lock-periods-row > .check { flex: 1 1 280px; }
.lock-periods { width: 170px; flex: none; }

/* ---- v1.35: Mail-Logo im Admin auf dunklem und hellem Grund ---------------------------------------------------- */
.mail-logo-previews { display: grid; gap: 8px; }
.mail-logo-previews .preview { aspect-ratio: 16 / 6; }

/* ---- v1.36: Markenpaket für Partner (Logos und Farben) ---------------------------------------------------------- */
.brand-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.brand-logo { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.brand-logo-preview { height: 128px; display: grid; place-items: center; padding: 24px; }
.brand-logo-preview img { display: block; max-width: 100%; max-height: 40px; }
.brand-logo-preview.is-dark { background: #18181b; }
.brand-logo-preview.is-light { background: #ffffff; }
.brand-logo-preview.is-icon { background: var(--surface-2); }
.brand-logo-preview.is-icon img { max-height: 64px; }
.brand-logo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--line); }
.brand-logo-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.brand-color { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s; }
.brand-color:hover { border-color: var(--accent-line); }
.brand-swatch { width: 46px; height: 46px; flex: none; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); }
.brand-color-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 980px) { .brand-logos { grid-template-columns: 1fr; } }

/* ---- v1.37: Werbebild-Generator für Partner ------------------------------------------------------------------------ */
.promo-gen { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.promo-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.promo-formats label:last-child { grid-column: span 2; }
.promo-formats span { justify-content: center; height: 32px; padding: 0 10px; font-size: .84rem; }
.promo-controls [hidden] { display: none; }
.promo-controls .btn[data-promo-download] { align-self: flex-start; }
.promo-stage { display: grid; place-items: center; min-height: 600px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-deep); }
.promo-stage canvas { display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.promo-stage canvas.is-panel { width: min(100%, 480px); max-height: none; }
@media (max-width: 980px) {
  .promo-gen { grid-template-columns: 1fr; }
  .promo-stage { min-height: 0; padding: 14px; }
  .promo-stage canvas { max-height: 70vh; }
}
/* ---- v1.39: Hinweis auf unbestätigte E-Mail im Kundenkonto (Admin) ------------------------------------------------ */
.verify-notice { align-items: center; flex-wrap: wrap; }
.verify-notice .grow { min-width: 220px; }
.verify-actions { display: flex; flex-wrap: wrap; gap: 8px; }