/* ==========================================================================
   MythicMusic · app.css
   Design-System für Webseite und Dashboard.

   Aufbau
   1. Tokens          Farben, Schrift, Radien (alte Namen am Ende für modules.css)
   2. Grundlagen      Reset, Typografie, Hilfsklassen
   3. Bausteine       Buttons, Felder, Auswahl, Schalter, Badges, Kästen, Listen,
                      Tabellen, Reiter, Dialoge, Meldungen
   4. Webseite        Kopf, Fuß, Seitenbreiten
   5. Dashboard       App-Rahmen mit Bereichsleiste und Navigation
   6. Startseite      lp-* (Landingpage), dw-* (Discord-Vorschau), pv-* (Playlist-Vorschau)
   7. Bugreports
   8. Kleine Bildschirme

   Grundsätze: eine Akzentfarbe (Rot) nur für Hauptaktionen und Zustände,
   1-px-Linien statt Schatten, Schatten nur für schwebende Ebenen,
   keine Großbuchstaben-Labels, keine Verläufe als Deko.
   ========================================================================== */

/* ------------------------------------------------------------- 1. Tokens */

:root {
  color-scheme: dark;

  --bg: #0a0a0b;
  --bg-sunken: #070708;
  --bg-side: #0d0d0f;
  --bg-rail: #08080a;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1e1e22;
  --hover: rgba(255, 255, 255, 0.035);
  --hover-strong: rgba(255, 255, 255, 0.065);

  --border: #222226;
  --border-strong: #2e2e34;
  --border-hover: #3c3c43;

  --fg: #ededef;
  --fg-2: #b6b6bd;
  --fg-muted: #8f8f98;
  --fg-subtle: #696972;

  --accent: #d92d33;
  --accent-hover: #e63c42;
  --accent-text: #ff9296;
  --accent-soft: rgba(230, 60, 66, 0.12);
  --accent-line: rgba(230, 60, 66, 0.4);

  --success: #3ecf8e;
  --success-text: #79e0b1;
  --success-soft: rgba(62, 207, 142, 0.12);
  --warning: #f2b43c;
  --warning-text: #f6c96d;
  --warning-soft: rgba(242, 180, 60, 0.12);
  --info: #5eaeff;
  --info-text: #93c8ff;
  --info-soft: rgba(94, 174, 255, 0.12);
  --violet: #9d8cff;
  --violet-text: #c3b8ff;
  --violet-soft: rgba(157, 140, 255, 0.13);
  --gold: #e3b341;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Mona Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;

  --shadow-pop: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 18px 44px -14px rgba(0, 0, 0, 0.75);
  --ring: 0 0 0 3px rgba(230, 60, 66, 0.28);

  --max: 1180px;
  --rail-w: 68px;
  --side-w: 236px;

  /* Alte Namen – werden in modules.css noch verwendet */
  --bg-soft: var(--surface);
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --stone: var(--surface-3);
  --stone-light: var(--border-strong);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --text: var(--fg);
  --muted: var(--fg-muted);
  --muted-2: var(--fg-subtle);
  --red: var(--accent);
  --red-bright: #f0474d;
  --red-soft: var(--accent-text);
  --green: var(--success);
  --amber: var(--warning);
  --shadow: var(--shadow-pop);
  --font-body: var(--font-sans);
  --font-pixel: var(--font-sans);
}

/* ------------------------------------------------------- 2. Grundlagen */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p,
figure,
blockquote {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:not(pre) > code {
  padding: 0.1em 0.38em;
  border-radius: 5px;
  background: var(--hover-strong);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

pre,
code {
  font-family: var(--font-mono);
}

hr {
  height: 1px;
  margin: 20px 0;
  border: 0;
  background: var(--border);
}

::selection {
  background: rgba(230, 60, 66, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #ff5d62;
  outline-offset: 2px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #2c2c32 transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: #2c2c32;
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

/* Hilfsklassen */
.muted {
  color: var(--fg-muted);
}

.small {
  font-size: 12px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.text-red,
.text-red-soft {
  color: var(--accent-text);
}

.text-amber {
  color: var(--warning-text);
}

.inline {
  display: inline;
}

.is-round {
  border-radius: 50%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: -3px;
}

.i-sm {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes pulse-soft {
  50% { opacity: 0.45; }
}

/* ---------------------------------------------------------- 3. Bausteine */

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-hover);
}

.btn:active:not(:disabled) {
  transform: translateY(0.5px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.is-busy {
  opacity: 0.7;
  cursor: progress;
}

.btn .i {
  width: 15px;
  height: 15px;
  vertical-align: 0;
}

.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover:not(:disabled) {
  border-color: transparent;
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--hover-strong);
}

.btn-subtle {
  color: var(--fg-2);
}

.btn-subtle:hover:not(:disabled) {
  color: var(--fg);
}

.btn-danger {
  border-color: rgba(230, 60, 66, 0.35);
  background: transparent;
  color: var(--accent-text);
}

.btn-danger:hover:not(:disabled) {
  border-color: rgba(230, 60, 66, 0.6);
  background: var(--accent-soft);
  color: #ffb3b6;
}

.btn-success {
  border-color: rgba(62, 207, 142, 0.35);
  background: transparent;
  color: var(--success-text);
}

.btn-success:hover:not(:disabled) {
  border-color: rgba(62, 207, 142, 0.6);
  background: var(--success-soft);
}

.btn-gold {
  border-color: transparent;
  background: var(--gold);
  color: #1b1303;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-gold:hover:not(:disabled) {
  border-color: transparent;
  background: #efc155;
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  gap: 6px;
  border-radius: 7px;
  font-size: 12.5px;
}

.btn-sm .i {
  width: 14px;
  height: 14px;
}

.btn-xs {
  height: 24px;
  padding: 0 8px;
  gap: 5px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.btn-xs .i {
  width: 13px;
  height: 13px;
}

.btn-lg {
  height: 42px;
  padding: 0 18px;
  font-size: 14.5px;
}

.btn-lg .i {
  width: 16px;
  height: 16px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--fg-muted);
  font-size: 13px;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.icon-btn:hover:not(:disabled) {
  background: var(--hover-strong);
  color: var(--fg);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-btn .i {
  width: 16px;
  height: 16px;
  vertical-align: 0;
}

.icon-btn-danger:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.icon-btn.is-placeholder {
  visibility: hidden;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-muted);
  font-size: 13px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--fg);
}

.link-btn.is-danger:hover {
  color: var(--accent-text);
}

.link-btn .i {
  width: 14px;
  height: 14px;
}

/* Formulare --------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0 0 14px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
}

.field-hint {
  color: var(--fg-subtle);
  font-size: 12.5px;
  line-height: 1.45;
}

.field-action {
  display: flex;
  align-items: flex-end;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.field-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0 12px;
  align-items: end;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.form-actions .input {
  width: auto;
}

.form-actions .select {
  flex: 0 1 260px;
  width: auto;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.panel-actions-split {
  justify-content: space-between;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row .input {
  flex: 1;
}

.input {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  color: var(--fg);
  font-size: 14px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.input::placeholder {
  color: var(--fg-subtle);
}

.input:hover:not(:disabled) {
  border-color: var(--border-hover);
}

.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

textarea.input,
.textarea {
  height: auto;
  min-height: 88px;
  padding: 9px 11px;
  line-height: 1.55;
  resize: vertical;
}

.code-textarea {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

select.input {
  padding-right: 32px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f8f98' stroke-width='2' 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 10px center;
}

select.input option,
select.input optgroup {
  background: var(--surface-2);
  color: var(--fg);
}

.input-sm {
  height: 30px;
  padding: 0 9px;
  font-size: 13px;
}

.input-color,
input[type="color"].input {
  height: 36px;
  padding: 3px;
  cursor: pointer;
}

input[type="search"].input::-webkit-search-cancel-button {
  filter: grayscale(1) brightness(1.4);
}

/* Eigene Auswahlliste (app.js ersetzt <select class="input">) */
.select {
  position: relative;
  width: 100%;
}

.select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 10px 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  color: var(--fg);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.select-trigger:hover:not(:disabled) {
  border-color: var(--border-hover);
}

.select-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.select-trigger:focus-visible,
.select.is-open .select-trigger {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.select-trigger .i {
  width: 15px;
  height: 15px;
  color: var(--fg-subtle);
  transition: transform 0.15s ease;
}

.select.is-open .select-trigger .i {
  transform: rotate(180deg);
}

.select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-sm .select-trigger {
  height: 30px;
  padding: 0 8px 0 9px;
  font-size: 13px;
}

.select-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: none;
  min-width: 180px;
  max-height: 300px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
}

.select.is-up .select-menu {
  top: auto;
  bottom: calc(100% + 4px);
}

.select.is-open .select-menu {
  display: block;
  animation: pop-in 0.12s ease-out;
}

.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  color: var(--fg-2);
  font-size: 13.5px;
  cursor: pointer;
}

.select-option .i {
  width: 14px;
  height: 14px;
  color: var(--fg);
  visibility: hidden;
}

.select-option.is-active {
  background: var(--hover-strong);
  color: var(--fg);
}

.select-option[aria-selected="true"] {
  color: var(--fg);
  font-weight: 500;
}

.select-option[aria-selected="true"] .i {
  visibility: visible;
}

.select-option[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Namenssuche mit Vorschlägen */
.lookup {
  position: relative;
}

.lookup-chosen {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--fg-muted);
  font-size: 12.5px;
  pointer-events: none;
}

.lookup-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 300px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
}

.lookup-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lookup-option.is-active,
.lookup-option:hover {
  background: var(--hover-strong);
}

.lookup-option img,
.lookup-initial {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.lookup-initial {
  display: inline-grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 600;
}

.lookup-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lookup-text strong {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-text small {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* Schalter */
.switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  vertical-align: middle;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d4d4d8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.switch.is-on,
.switch-input:checked + .switch {
  background: var(--accent);
  box-shadow: none;
}

.switch.is-on span,
.switch-input:checked + .switch span {
  transform: translateX(16px);
  background: #fff;
}

.switch-input:not(:checked) + .switch.is-on {
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.switch-input:not(:checked) + .switch.is-on span {
  transform: none;
  background: #d4d4d8;
}

.switch-sm {
  width: 30px;
  height: 18px;
}

.switch-sm span {
  width: 14px;
  height: 14px;
}

.switch-sm.is-on span,
.switch-input:checked + .switch-sm span {
  transform: translateX(12px);
}

.switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch:focus-visible,
.switch-input:focus-visible + .switch {
  outline: 2px solid #ff5d62;
  outline-offset: 2px;
}

.switch.is-busy {
  opacity: 0.55;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}

.switch-row > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}

.switch-row > span > span {
  color: var(--fg-muted);
  font-size: 12.5px;
}

/* Kontrollkästchen und Optionsfelder im Stil der Seite (statt Browser-Standard) */
input[type="checkbox"],
input[type="radio"] {
  display: inline-grid;
  flex-shrink: 0;
  place-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid var(--border-hover);
  border-radius: 4px;
  background: var(--bg-sunken) center / 10px no-repeat;
  vertical-align: -3px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled) {
  border-color: var(--fg-subtle);
}

input[type="checkbox"]:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

input[type="radio"]:checked {
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: inset 0 0 0 3.5px var(--accent);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

input[type="radio"]:checked:focus-visible {
  box-shadow: inset 0 0 0 3.5px var(--accent), var(--ring);
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* In Zeilen mit Beschreibung („Öffentlich teilbar“ …) wird das Häkchen zum Schalter.
   Außerhalb solcher Zeilen: Klasse .switch-check */
.switch-row input[type="checkbox"],
input[type="checkbox"].switch-check {
  position: relative;
  width: 36px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.switch-row input[type="checkbox"]::before,
input[type="checkbox"].switch-check::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d4d4d8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.switch-row input[type="checkbox"]:checked,
input[type="checkbox"].switch-check:checked {
  background: var(--accent);
  box-shadow: none;
}

.switch-row input[type="checkbox"]:checked::before,
input[type="checkbox"].switch-check:checked::before {
  background: #fff;
  transform: translateX(16px);
}

.switch-row input[type="checkbox"]:focus-visible,
input[type="checkbox"].switch-check:focus-visible {
  box-shadow: inset 0 0 0 1px var(--border-strong), var(--ring);
}

.switch-row:hover input[type="checkbox"]:not(:checked),
.gs-option:hover input[type="checkbox"].switch-check:not(:checked):not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--border-hover);
}

/* Kennzeichen ------------------------------------------------------------- */

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  background: var(--hover-strong);
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge .i,
.pill .i {
  width: 12px;
  height: 12px;
  vertical-align: 0;
}

.badge-red {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.badge-green,
.pill-green {
  background: var(--success-soft);
  color: var(--success-text);
}

.badge-amber {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.badge-violet,
.pill-violet {
  background: var(--violet-soft);
  color: var(--violet-text);
}

.badge-blue {
  background: var(--info-soft);
  color: var(--info-text);
}

.pill-muted {
  color: var(--fg-muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  height: 24px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip .i {
  width: 13px;
  height: 13px;
  vertical-align: 0;
}

.chip-button {
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.chip-button:hover {
  border-color: var(--border-hover);
  color: var(--fg);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--fg-subtle);
}

.live-toggle.is-on .live-dot,
.live-dot.is-on {
  background: var(--success);
  animation: pulse-soft 2s ease-in-out infinite;
}

/* Kästen ------------------------------------------------------------------ */

.panel {
  position: relative;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel > :last-child {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-head h2,
.panel-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head p {
  max-width: 640px;
  margin-top: 3px;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 10px;
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.subhead .i {
  color: var(--fg-subtle);
}

.mini-label {
  color: var(--fg-subtle);
  font-size: 12px;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
}

/* Zwei Kästen nebeneinander: immer gleich hoch, Knöpfe unten bündig */
.dev-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.dev-columns-wide {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.dev-columns > .panel,
.dev-columns > form.panel {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.dev-columns > .panel > form:last-child {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.dev-columns > .panel > .panel-actions:last-child,
.dev-columns > form.panel > .panel-actions:last-of-type,
.dev-columns > .panel > form:last-child > .panel-actions:last-child {
  margin-top: auto;
  padding-top: 12px;
}

/* Kennzahlen: ein Streifen mit Trennlinien */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.dash-grid-6 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* Trennlinien rechts und unten – am Rand schneidet der Kasten sie ab */
.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 14px 18px 16px;
  box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border);
}

.stat-label {
  color: var(--fg-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.stat-value {
  overflow: hidden;
  color: var(--fg);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-hint {
  overflow: hidden;
  color: var(--fg-subtle);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Zustände und Hinweise */
.state-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.state-box > .i {
  width: 20px;
  height: 20px;
  color: var(--fg-subtle);
}

.state-box > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.state-box strong {
  font-weight: 600;
}

.state-box span {
  color: var(--fg-muted);
  font-size: 13px;
}

.state-box.is-on {
  border-color: rgba(157, 140, 255, 0.3);
  background: var(--violet-soft);
}

.state-box.is-on > .i {
  color: var(--violet-text);
}

.state-box.is-danger {
  border-color: rgba(230, 60, 66, 0.35);
  background: var(--accent-soft);
}

.state-box.is-danger > .i {
  color: var(--accent-text);
}

.alert {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.alert-error {
  border-color: rgba(230, 60, 66, 0.35);
  background: var(--accent-soft);
  color: #ffc4c6;
}

.alert-warning {
  border-color: rgba(242, 180, 60, 0.3);
  background: var(--warning-soft);
  color: #f9dca2;
}

.alert-info {
  border-color: rgba(94, 174, 255, 0.3);
  background: var(--info-soft);
  color: #cde4ff;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state .empty-svg {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  padding: 8px;
  border-radius: 10px;
  background: var(--hover-strong);
  color: var(--fg-muted);
}

.empty-state h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
}

.empty-state p {
  max-width: 420px;
  color: var(--fg-muted);
  font-size: 13px;
}

.empty-state .btn {
  margin-top: 10px;
}

.empty-state-sm {
  padding: 28px 16px;
}

.code-block {
  max-height: 320px;
  margin: 8px 0 0;
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  color: var(--fg-2);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.scroll-box {
  max-height: 620px;
  overflow-y: auto;
}

.scroll-box-sm {
  max-height: 420px;
}

/* Listen ------------------------------------------------------------------ */

.mini-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.mini-list li:last-child {
  border-bottom: 0;
}

.mini-list li > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.mini-list strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-list li > div span {
  overflow: hidden;
  color: var(--fg-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-list .muted {
  font-size: 12px;
  white-space: nowrap;
}

.mini-list-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.meta-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.meta-list dt {
  color: var(--fg-muted);
}

.meta-list dd {
  margin: 0;
  text-align: right;
}

.meta-list dd form {
  margin: 0;
}

.meta-list dd .select {
  min-width: 120px;
}

.entity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: inherit;
}

.entity img,
.entity .server-fallback {
  width: 36px;
  height: 36px;
}

.entity-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entity-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: inherit;
}

.entity-link:hover {
  background: var(--hover);
}

.entity-link img,
.entity-link .server-fallback {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: cover;
}

.entity-link > .i {
  color: var(--fg-subtle);
}

.entity-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.entity-text strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-text span {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.entity-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--hover-strong);
  color: var(--fg-2);
}

/* Werkzeugleisten, Seitenwechsel, Brotkrumen -------------------------------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-search input[type="search"] {
  width: 240px;
}

.toolbar-search select.input,
.toolbar-search .select {
  width: 190px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-note {
  margin: 12px 0;
  color: var(--fg-muted);
  font-size: 13px;
}

.dev-search {
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--fg-subtle);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--fg-muted);
}

.breadcrumb a:hover {
  color: var(--fg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--fg-muted);
  font-size: 13px;
}

.back-link:hover {
  color: var(--fg);
}

/* Reiter und Umschalter ------------------------------------------------------ */

.tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 11px;
  color: var(--fg-muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.tab:hover {
  color: var(--fg);
}

.tab.is-active {
  color: var(--fg);
}

.tab.is-active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
}

.tab .i {
  width: 15px;
  height: 15px;
  color: var(--fg-subtle);
}

.tab.is-active .i {
  color: var(--fg-2);
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--hover-strong);
  color: var(--fg-muted);
  font-size: 11px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-sunken);
}

.segment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.segment:hover {
  color: var(--fg);
}

.segment.is-active {
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--fg);
}

.segment span {
  color: var(--fg-subtle);
  font-size: 12px;
  font-weight: 500;
}

/* Tabellen ------------------------------------------------------------------ */

.table-wrap {
  /* position: Unsichtbare Spaltenköpfe (.sr-only, absolut) bleiben im Scroll-Bereich – sonst wird die Seite auf dem Handy breiter */
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--hover);
}

.data-table tr.is-muted td {
  opacity: 0.55;
}

/* Dialoge, Meldungen, Cookie-Hinweis ---------------------------------------- */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  animation: fade-in 0.15s ease;
}

.modal {
  display: flex;
  flex-direction: column;
  width: min(100%, 480px);
  max-height: min(88vh, 900px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  outline: none;
  animation: pop-in 0.16s ease-out;
}

.modal-wide {
  width: min(100%, 780px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.modal-foot .btn-danger {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.modal-foot .btn-danger:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #fff;
}

.confirm-text {
  color: var(--fg-2);
  font-size: 14px;
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
  font-size: 13.5px;
  line-height: 1.45;
  animation: toast-in 0.18s ease-out;
}

.toast-mark {
  display: inline-flex;
  margin-top: 1px;
  line-height: 0;
}

.toast-mark .i {
  width: 16px;
  height: 16px;
  vertical-align: 0;
}

.toast-success .toast-mark {
  color: var(--success);
}

.toast-error .toast-mark {
  color: #ff7a7f;
}

.toast-info .toast-mark {
  color: var(--info);
}

.cookie-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 350;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
  color: var(--fg-2);
  font-size: 13px;
}

.cookie-note p {
  flex: 1;
}

.cookie-note a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body:has(.modal-layer:not([hidden])) .cookie-note {
  display: none;
}

/* -------------------------------------------------------------- 4. Webseite */

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: -9999px;
  z-index: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
}

.site-head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  height: 60px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--fg);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.12s ease, background 0.12s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--fg);
}

.nav-external .i {
  opacity: 0.55;
}

.site-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.user-chip:hover {
  border-color: var(--border-strong);
  background: var(--hover);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-fallback {
  display: inline-grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--fg-2);
  font-size: 12px;
  font-weight: 600;
}

.user-name {
  max-width: 140px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
}

.burger span {
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.site-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--info-soft);
  color: var(--info-text);
  font-size: 13.5px;
  text-align: center;
}

.site-banner .i {
  width: 15px;
  height: 15px;
}

.site-banner-warn {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.site-banner-danger {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.site-banner-success {
  background: var(--success-soft);
  color: var(--success-text);
}

.site-main {
  flex: 1;
  font-size: 15px;
}

.page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.narrow-page {
  max-width: 640px;
  padding-top: 72px;
}

.site-foot {
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}

.site-foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.foot-brand .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.foot-brand p {
  max-width: 300px;
  margin-top: 12px;
  color: var(--fg-muted);
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.foot-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.foot-title {
  margin-bottom: 4px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.foot-links a {
  color: var(--fg-muted);
  transition: color 0.12s ease;
}

.foot-links a:hover {
  color: var(--fg);
}

.site-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px 32px;
  border-top: 1px solid var(--border);
  color: var(--fg-subtle);
  font-size: 12.5px;
}

/* ------------------------------------------------------------- 5. Dashboard */

.app {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  align-content: start;
  min-height: 100vh;
}

.app.has-rail {
  grid-template-columns: calc(var(--rail-w) + var(--side-w)) minmax(0, 1fr);
}

.app-mobilebar {
  display: none;
}

.dash-side {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--border);
}

/* Bereichsleiste (Ich, Musik, Verwaltung, Web, Team) */
.dash-rail {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: var(--rail-w);
  padding: 12px 0;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-rail);
  scrollbar-width: none;
}

.rail-home {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.rail-home img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  image-rendering: pixelated;
}

.rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 58px;
  padding: 5px 0 6px;
  color: var(--fg-subtle);
  transition: color 0.12s ease;
}

.rail-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border-radius: var(--radius);
  transition: background 0.12s ease;
}

.rail-icon .i {
  width: 18px;
  height: 18px;
  vertical-align: 0;
}

.rail-label {
  max-width: 58px;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-item:hover {
  color: var(--fg-2);
}

.rail-item:hover .rail-icon {
  background: var(--hover-strong);
}

.rail-item.is-active {
  color: var(--fg);
}

.rail-item.is-active .rail-icon {
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

/* Markierung am Rand wie in Discord */
.rail-item.is-active::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -5px;
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--fg);
}

.rail-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg-rail);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* Navigation des Bereichs */
.dash-subnav {
  display: flex;
  flex: none;
  flex-direction: column;
  width: var(--side-w);
  min-height: 0;
  background: var(--bg-side);
}

.side-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 0 18px;
}

.side-head .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.side-title {
  overflow: hidden;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-role {
  margin-left: auto;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--hover-strong);
  color: var(--fg-muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.dash-side-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
  padding: 0 10px 12px;
  overflow-y: auto;
}

.side-group {
  margin: 16px 0 4px;
  padding: 0 8px;
  color: var(--fg-subtle);
  font-size: 12px;
  font-weight: 500;
}

.side-group:first-child {
  margin-top: 2px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--fg-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}

.side-link > span:not(.side-badge) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link:hover {
  background: var(--hover);
  color: var(--fg);
}

.side-link.is-active {
  background: var(--hover-strong);
  color: var(--fg);
}

.side-icon {
  width: 16px;
  height: 16px;
  color: var(--fg-subtle);
  vertical-align: 0;
}

.side-link:hover .side-icon,
.side-link.is-active .side-icon {
  color: var(--fg-2);
}

.side-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.side-bottom {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--border);
}

.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 6px 4px 2px 8px;
}

.side-user .user-avatar {
  width: 28px;
  height: 28px;
}

.side-user-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.side-user-text strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user-text span {
  overflow: hidden;
  color: var(--fg-subtle);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Inhalt */
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-content {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px clamp(20px, 3vw, 44px) 72px;
}

.dash-content .page {
  max-width: none;
  margin: 0;
  padding: 0;
}

.dash-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.dash-page-head .eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--fg-subtle);
}

.dash-page-head h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dash-page-head p {
  max-width: 680px;
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: 14px;
}

/* Zustandsseiten: Anmelden, 404/500, gesperrt, Wartung, Bann */
.login-panel,
.locked-page,
.notfound {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.login-panel,
.locked-page {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.login-panel h1,
.locked-page h1,
.notfound h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-panel p,
.locked-page p,
.notfound p {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.login-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 11px;
  image-rendering: pixelated;
}

.login-panel .alert {
  margin: 18px 0 0;
  text-align: left;
}

.login-panel .btn {
  margin-top: 24px;
}

.login-note {
  display: block;
  margin-top: 14px;
  color: var(--fg-subtle);
  font-size: 12.5px;
}

.mode-icon {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--hover-strong);
  color: var(--fg-2);
}

.mode-icon .i {
  width: 18px;
  height: 18px;
  vertical-align: 0;
}

.locked-page .mode-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 11px;
}

.locked-page .mode-icon .i {
  width: 20px;
  height: 20px;
}

/* Karten auf „Wartung & Befehle“ und in der Verwaltung */
.mode-card-head h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.vw-tile {
  background: var(--surface);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.vw-tile:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.vw-tile .i {
  color: var(--fg-muted);
}

.locked-page.is-danger .mode-icon {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.locked-meta {
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  text-align: left;
}

.notfound-code {
  display: block;
  margin-bottom: 12px;
  color: var(--fg-subtle);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

/* ------------------------------------------------------------ 6. Startseite */

.lp-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.lp-hero {
  padding: 80px 0 88px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(48% 60% at 78% 30%, rgba(217, 45, 51, 0.07), transparent 70%);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 56px;
}

.lp-hero h1 {
  max-width: 14ch;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.lp-lead {
  max-width: 520px;
  margin-top: 20px;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.6;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.lp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--fg-muted);
  font-size: 13.5px;
}

.lp-meta strong {
  color: var(--fg);
  font-weight: 600;
}

.lp-status {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--fg-subtle);
}

.lp-status.is-online {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.16);
}

.lp-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}

.lp-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.lp-head h2,
.lp-split-copy h2,
.lp-final h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.lp-head p,
.lp-split-copy > p {
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.6;
}

.lp-head-tight {
  margin-bottom: 24px;
}

.lp-head-tight h2 {
  font-size: 24px;
}

.lp-head-tight p {
  margin-top: 8px;
  font-size: 15px;
}

.lp-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.lp-points > div {
  padding: 28px 28px 0 0;
}

.lp-points > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.lp-points .i {
  width: 20px;
  height: 20px;
  margin-bottom: 18px;
  color: var(--accent-text);
}

.lp-points h3 {
  font-size: 16.5px;
}

.lp-points p {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
}

.lp-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.lp-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-2);
  font-size: 14.5px;
}

.lp-checks .i {
  color: var(--success);
}

.lp-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.lp-commands {
  margin: 0;
  border-top: 1px solid var(--border);
}

.lp-commands > div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.lp-commands dt code {
  padding: 3px 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
}

.lp-commands dd {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14.5px;
}

.lp-compare {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.lp-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.lp-compare-row:first-child {
  border-top: 0;
}

.lp-compare-row > span:nth-child(2) {
  color: var(--fg-muted);
}

.lp-compare-head {
  background: var(--surface);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.lp-compare-head > span:nth-child(2) {
  color: var(--fg);
}

.lp-compare-head > span:last-child {
  color: var(--accent-text);
}

.lp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
}

.lp-link:hover {
  color: var(--accent-text);
}

.lp-servers {
  padding: 56px 0;
}

.lp-servers-title {
  margin-bottom: 20px;
  color: var(--fg-subtle);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.lp-server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-server-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lp-server-list img,
.lp-server-list .server-fallback {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius);
  font-size: 13px;
}

.lp-server-list strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.lp-server-list small {
  display: block;
  color: var(--fg-subtle);
  font-size: 12px;
}

.lp-final {
  border-bottom: 0;
}

.lp-final-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.lp-final p {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: 16px;
}

.lp-final .lp-actions {
  margin-top: 0;
}

/* Discord-Fenster mit Player-Panel (nachgebaut, nur Anzeige) */
.dw {
  overflow: hidden;
  border: 1px solid #1f2023;
  border-radius: var(--radius-lg);
  background: #313338;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  color: #dbdee1;
  font-size: 14px;
  line-height: 1.375;
}

.dw-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid #26282c;
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 600;
}

.dw-bar .i {
  width: 20px;
  height: 20px;
  color: #80848e;
}

.dw-body {
  padding: 18px 16px 20px;
}

.dw-reply {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px 56px;
  color: #949ba4;
  font-size: 13px;
}

.dw-reply::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -36px;
  width: 30px;
  height: 12px;
  border-top: 2px solid #4e5058;
  border-left: 2px solid #4e5058;
  border-top-left-radius: 6px;
}

.dw-reply-avatar {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.dw-reply strong {
  color: #f2f3f5;
  font-weight: 500;
}

.dw-cmd {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
}

.dw-msg {
  display: flex;
  gap: 16px;
}

.dw-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  image-rendering: pixelated;
}

.dw-main {
  flex: 1;
  min-width: 0;
}

.dw-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.dw-head strong {
  color: #f2f3f5;
  font-size: 15px;
  font-weight: 600;
}

.dw-app {
  height: 15px;
  padding: 0 4px;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  text-transform: uppercase;
}

.dw-time {
  margin-left: 2px;
  color: #949ba4;
  font-size: 12px;
}

.dw-panel {
  padding: 14px 16px 16px;
  border: 1px solid #26282c;
  border-left: 4px solid #cf1417;
  border-radius: var(--radius);
  background: #2b2d31;
}

.dw-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dw-kicker {
  display: block;
  margin-bottom: 8px;
  color: #f2f3f5;
  font-size: 19px;
  font-weight: 700;
}

.dw-title {
  display: block;
  color: #00a8fc;
  font-size: 16px;
  font-weight: 600;
}

.dw-artist {
  display: block;
  margin-top: 2px;
  color: #dbdee1;
  font-weight: 600;
}

.dw-cover {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, #f43f5e 0%, #9f1239 50%, #1f0a12 100%);
}

.dw-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #b5bac1;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.dw-track {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #4e5058;
}

.dw-track > span {
  display: block;
  height: 100%;
  background: #f2f3f5;
}

.dw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.dw-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-xs);
  background: #1e1f22;
  color: #dbdee1;
  font-family: var(--font-mono);
  font-size: 12px;
}

.dw-chips .i {
  width: 12px;
  height: 12px;
  color: #b5bac1;
  vertical-align: 0;
}

.dw-requested {
  margin-top: 10px;
  color: #949ba4;
  font-size: 12.5px;
}

.dw-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #3f4147;
}

.dw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius);
  background: #4e5058;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.dw-btn.is-primary {
  background: #5865f2;
}

.dw-btn.is-danger {
  background: #da373c;
}

.dw-btn .i {
  width: 14px;
  height: 14px;
  vertical-align: 0;
}

/* Playlist-Vorschau */
.pv {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.pv-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.pv-cover {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: conic-gradient(#7c3aed 0 25%, #be123c 0 50%, #0f766e 0 75%, #b45309 0);
}

.pv-head strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.pv-head div span {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.pv-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pv-list {
  margin: 0;
  padding: 6px;
  list-style: none;
}

.pv-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13.5px;
}

.pv-list li:nth-child(2) {
  background: var(--hover-strong);
}

.pv-no {
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.pv-title {
  min-width: 0;
}

.pv-title strong {
  display: block;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-title span {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.pv-source {
  color: var(--fg-subtle);
  font-size: 12px;
}

.pv-time {
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ------------------------------------------------------- Hilfe (Doku-Stil) */

.docs-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.docs-head h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.docs-head p {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 16px;
}

.docs-search {
  position: relative;
  display: block;
  max-width: 520px;
  margin-top: 24px;
}

.docs-search .i {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--fg-subtle);
  transform: translateY(-50%);
}

.docs-search .input {
  height: 42px;
  padding-left: 38px;
  font-size: 15px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}

.docs-toc {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.docs-toc-title {
  margin-bottom: 8px;
  padding: 0 10px;
  color: var(--fg-subtle);
  font-size: 12.5px;
  font-weight: 500;
}

.docs-toc a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--fg-muted);
  font-size: 14px;
  transition: background 0.12s ease, color 0.12s ease;
}

.docs-toc a:hover {
  background: var(--hover);
  color: var(--fg);
}

.docs-toc-extra {
  margin-top: 12px;
}

.docs-content {
  max-width: 760px;
}

.docs-content > section {
  margin-bottom: 56px;
  scroll-margin-top: 84px;
}

.docs-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.docs-content > section > p {
  margin-top: 8px;
  color: var(--fg-muted);
}

.docs-defs {
  margin: 20px 0 0;
  border-top: 1px solid var(--border);
}

.docs-defs > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.docs-defs dt {
  font-weight: 500;
}

.docs-defs dd {
  margin: 0;
  color: var(--fg-2);
  line-height: 1.6;
}

.faq {
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  margin-right: 4px;
  border-right: 1.5px solid var(--fg-subtle);
  border-bottom: 1.5px solid var(--fg-subtle);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq summary:hover {
  color: var(--fg);
}

.faq details p {
  max-width: 680px;
  padding: 0 2px 16px;
  color: var(--fg-2);
  line-height: 1.65;
}

.faq-empty {
  margin-bottom: 40px;
}

.docs-help {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
}

.docs-help > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
}

.docs-help span {
  color: var(--fg-muted);
  font-size: 13.5px;
}

.docs-help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 500;
}

.docs-help a:hover {
  color: var(--accent-text);
}

/* -------------------------------------------------------- Rechtstexte */

.legal-hero {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-hero-icon {
  display: none;
}

.legal-hero .eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--fg-subtle);
}

.legal-hero h1 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal-hero p {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 15px;
}

.legal-note {
  margin-bottom: 24px;
  border: 1px solid rgba(242, 180, 60, 0.3);
  border-radius: var(--radius-md);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}

.legal-layout > .legal-sections:only-child {
  grid-column: 1 / -1;
}

.legal-toc {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.legal-toc .side-group {
  margin: 0 0 8px;
  padding: 0 10px;
}

.legal-toc a {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.12s ease, color 0.12s ease;
}

.legal-toc a:hover {
  background: var(--hover);
  color: var(--fg);
}

.legal-toc-no {
  padding-top: 1px;
  color: var(--fg-subtle);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.legal-sections {
  max-width: 720px;
}

.legal-card {
  margin-bottom: 36px;
  scroll-margin-top: 84px;
}

.legal-card h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-no {
  color: var(--fg-subtle);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.legal-card p {
  margin-top: 10px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
}

.legal-card .check-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.7;
}

.legal-card .check-list li {
  list-style: disc;
}

.legal-card .check-list li::before {
  content: none;
}

.legal-others {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.legal-other {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.legal-other:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.legal-other > span:not(.mode-icon) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.legal-other small {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.legal-other > .i {
  color: var(--fg-subtle);
}

/* ------------------------------------------------------------- Feedback */

.fb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}

.fb-head h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.fb-head p {
  max-width: 640px;
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 16px;
}

.fb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.fb-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fb-search .input[type="search"] {
  width: 220px;
}

.fb-search .select {
  width: 180px;
}

.fb-mine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--fg-2);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.fb-mine:hover {
  border-color: var(--border-hover);
  color: var(--fg);
}

.fb-mine:has(input:checked) {
  border-color: var(--fg-subtle);
  background: var(--hover-strong);
  color: var(--fg);
}

.fb-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.fb-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px 18px 12px;
  border-top: 1px solid var(--border);
}

.fb-card:first-child {
  border-top: 0;
}

.fb-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fb-vote-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--fg-subtle);
  transition: background 0.12s ease, color 0.12s ease;
}

.fb-vote-btn .i {
  vertical-align: 0;
}

.fb-vote-btn:hover {
  background: var(--hover-strong);
  color: var(--fg);
}

.fb-vote-btn.is-on {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.fb-vote-btn.is-down.is-on {
  background: var(--hover-strong);
  color: var(--fg);
}

.fb-score {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fb-vote.is-closed .fb-score {
  margin-top: 4px;
  color: var(--fg-muted);
}

.fb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--fg-subtle);
  font-size: 12.5px;
}

.fb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-2);
  font-weight: 500;
}

.fb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-subtle);
}

.fb-status-accepted .fb-status-dot {
  background: var(--warning);
}

.fb-status-done .fb-status-dot {
  background: var(--success);
}

.fb-status-rejected .fb-status-dot {
  background: #f0474d;
}

.fb-body h2 {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
}

.fb-text {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.fb-response {
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 2px solid var(--success);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
  font-size: 13.5px;
}

.fb-response strong {
  color: var(--success-text);
  font-size: 12.5px;
  font-weight: 600;
}

.fb-response p {
  margin-top: 4px;
  color: var(--fg-2);
}

.fb-own {
  margin-top: 10px;
}

.kind-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.field .kind-picker {
  margin-bottom: 0;
}

.kind-option {
  cursor: pointer;
}

.kind-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kind-option > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.kind-option .i {
  margin-bottom: 6px;
  color: var(--fg-subtle);
}

.kind-option strong {
  font-size: 14px;
  font-weight: 600;
}

.kind-option small {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.kind-option input:checked + span {
  border-color: var(--fg-muted);
  background: var(--hover-strong);
}

.kind-option input:checked + span .i {
  color: var(--fg);
}

.kind-option input:focus-visible + span {
  box-shadow: var(--ring);
}

/* -------------------------------------------------------------- Premium */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.plan.is-featured {
  border-color: rgba(230, 60, 66, 0.35);
  box-shadow: inset 0 1px 0 rgba(230, 60, 66, 0.25);
}

.plan-head h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.plan.is-featured .plan-head h2 {
  color: var(--accent-text);
}

.plan-price {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.plan-sub {
  margin-top: 4px;
  color: var(--fg-muted);
  font-size: 13px;
}

.plan-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  margin: 20px 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--fg-2);
  font-size: 13.5px;
}

.plan-list .i {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--fg-subtle);
}

.plan.is-featured .plan-list .i {
  color: var(--success);
}

.plan-note {
  margin-top: 10px;
  color: var(--fg-subtle);
  font-size: 12.5px;
  text-align: center;
}

.plan-table {
  min-width: 0;
}

.plan-table td:last-child {
  color: var(--fg);
}

.plan-help {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 13.5px;
}

.plan-help a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.panel .faq {
  margin-top: 0;
}

/* ---------------------------------- Feinschliff für übernommene Module */

/* Schwebende Speicherleiste (Web-Verwaltung, Verwaltungs-Einstellungen) */
.save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 16px 0 28px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(23, 23, 26, 0.92);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Rechtstexte in der Web-Verwaltung */
.legal-item summary {
  border-radius: var(--radius-sm);
}

.legal-item summary:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 6px;
}

.legal-item summary > .i:first-child {
  color: var(--fg-subtle);
  transition: transform 0.15s ease;
}

/* Rechte-Auswahl bei Mitwirkenden: neutral statt rot */
.perm-chip > span {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--fg-muted);
  font-weight: 500;
}

.perm-chip > span::before {
  border-color: var(--border-hover);
  border-radius: 4px;
}

.perm-chip:hover > span {
  border-color: var(--border-hover);
  color: var(--fg);
}

.perm-chip input:checked + span {
  border-color: var(--fg-subtle);
  background: var(--hover-strong);
  color: var(--fg);
}

.perm-chip input:checked + span::before {
  border-color: var(--accent);
  background-color: var(--accent);
}

.perm-chip input:focus-visible + span {
  outline: none;
  box-shadow: var(--ring);
}

.code-value {
  color: var(--fg);
  font-family: var(--font-mono);
}

.quota-bar {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--hover-strong);
}

.quota-bar span {
  border-radius: 999px;
}

.playlist-hero {
  border-radius: var(--radius-lg);
}

.playlist-hero-stats {
  background: var(--surface-2);
}

.feedback-text {
  color: var(--fg-2);
}

.feedback-card.is-done {
  border-color: var(--border);
}

.feedback-response {
  border-left: 2px solid var(--success);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2);
}

.feedback-response .i {
  color: var(--success);
}

.feedback-response p {
  color: var(--fg-2);
}

/* ------------------------------------------------- Dashboard: Übersicht */

.ov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 16px;
}

.ov-side > .panel:last-child {
  margin-bottom: 0;
}

.ov-list {
  display: flex;
  flex-direction: column;
  margin: 0 -8px;
  padding: 0;
  list-style: none;
}

.ov-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  border-radius: var(--radius-md);
  transition: background 0.12s ease;
}

.ov-list li:hover {
  background: var(--hover);
}

.ov-row {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px;
  color: inherit;
}

/* Farbiges „Cover“ – Farbton kommt aus dem Namen (--hue) */
.ov-cover,
.pl-hue {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius);
  background: hsl(var(--hue, 0) 38% 22%);
  box-shadow: inset 0 0 0 1px hsl(var(--hue, 0) 40% 32%);
  color: hsl(var(--hue, 0) 75% 82%);
}

.ov-cover .i {
  width: 16px;
  height: 16px;
  vertical-align: 0;
}

.ov-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ov-text strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-text span {
  overflow: hidden;
  color: var(--fg-muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}

.ov-servers {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ov-servers li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.ov-servers li:first-child {
  border-top: 0;
  padding-top: 0;
}

.ov-servers img,
.ov-servers .server-fallback {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius);
  font-size: 12px;
}

.ov-server-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-premium h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.ov-premium p {
  margin: 6px 0 14px;
  color: var(--fg-muted);
  font-size: 13.5px;
}

.ov-premium {
  border-color: rgba(157, 140, 255, 0.25);
  background: linear-gradient(180deg, rgba(157, 140, 255, 0.07), transparent 60%), var(--surface);
}

.ov-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.ov-steps li {
  position: relative;
  padding-left: 30px;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.6;
  counter-increment: step;
}

.ov-steps li::before {
  content: counter(step);
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--hover-strong);
  color: var(--fg-muted);
  font-size: 11.5px;
  font-weight: 600;
}

/* Ersatz-Bild mit Anfangsbuchstabe (Server, Personen) */
.server-fallback {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
  color: var(--fg-2);
  font-weight: 600;
}

.server-fallback.is-round {
  border-radius: 50%;
}

/* Kleines Icon-Kästchen (z. B. Verwaltungs-Systeme) */
.home-stat-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--hover-strong);
  color: var(--fg-2);
}

.home-stat-icon .i {
  width: 16px;
  height: 16px;
  vertical-align: 0;
}

/* ------------------------------------------------------------ 7. Bugreports */

.bug-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bug-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bug-search .input[type="search"] {
  width: 260px;
}

.bug-search .select {
  width: 190px;
}

.bug-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.bug-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: inherit;
  transition: background 0.12s ease;
}

.bug-row:first-child {
  border-top: 0;
}

.bug-row:hover {
  background: var(--hover);
}

.bug-no {
  color: var(--fg-subtle);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bug-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bug-main strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bug-main .muted {
  font-size: 12.5px;
}

.bug-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.bug-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-subtle);
  font-size: 12.5px;
}

.bug-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 16px;
}

.bug-report-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bug-report h2 {
  margin: 12px 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.bug-description {
  color: var(--fg-2);
  line-height: 1.6;
  white-space: pre-wrap;
}

.bug-byline {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--fg-subtle);
  font-size: 13px;
}

.side-heading {
  margin: 0 0 12px;
  color: var(--fg-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.side-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.status-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
}

.status-option:hover:not(:disabled) {
  background: var(--hover);
}

.status-option:disabled {
  cursor: default;
}

.status-option.is-active {
  border-color: var(--border-strong);
  background: var(--hover-strong);
}

.status-option.is-busy {
  opacity: 0.6;
}

.status-option-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.status-option strong {
  font-size: 13.5px;
  font-weight: 500;
}

.status-option small {
  color: var(--fg-subtle);
  font-size: 12px;
}

.status-dot-sm,
.timeline-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--fg-subtle);
}

.is-red > .status-dot-sm,
.timeline-dot.is-red {
  background: #f0474d;
}

.is-amber > .status-dot-sm,
.timeline-dot.is-amber {
  background: var(--warning);
}

.is-green > .status-dot-sm,
.timeline-dot.is-green {
  background: var(--success);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  color: var(--fg-muted);
  font-size: 13px;
}

.timeline-event .timeline-dot {
  margin-top: 0;
}

.timeline-event strong {
  color: var(--fg);
  font-weight: 500;
}

.timeline-note {
  display: flex;
  gap: 12px;
}

.timeline-note > img,
.timeline-note > .server-fallback {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 12px;
}

.timeline-body {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.timeline-note.is-reply .timeline-body {
  border-color: rgba(62, 207, 142, 0.25);
  background: rgba(62, 207, 142, 0.05);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.timeline-head strong {
  font-weight: 600;
}

.timeline-head time {
  margin-left: auto;
  font-size: 12px;
}

.timeline-body p {
  line-height: 1.55;
  white-space: pre-wrap;
}

.composer {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
}

.composer:focus-within {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.composer.is-note {
  border-style: dashed;
}

.composer .textarea {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.composer .textarea:focus {
  box-shadow: none;
}

.composer-mode {
  display: flex;
  gap: 2px;
  padding: 6px 6px 0;
}

.composer-mode label {
  cursor: pointer;
}

.composer-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.composer-mode span {
  display: inline-block;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
}

.composer-mode label:hover span {
  color: var(--fg);
}

.composer-mode input:checked + span {
  background: var(--hover-strong);
  color: var(--fg);
}

.composer-mode input:focus-visible + span {
  box-shadow: var(--ring);
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border-top: 1px solid var(--border);
}

.composer-hint {
  font-size: 12.5px;
}

/* Einklappbarer Kasten (Einstellungen, die man selten braucht) */
.panel-collapsible {
  padding: 0;
}

.panel-collapsible > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  list-style: none;
  cursor: pointer;
}

.panel-collapsible > summary::-webkit-details-marker {
  display: none;
}

.panel-collapsible > summary > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-collapsible > summary strong {
  font-size: 14px;
  font-weight: 600;
}

.panel-collapsible > summary .muted {
  font-size: 13px;
}

.panel-collapsible > summary .i {
  color: var(--fg-subtle);
  transition: transform 0.15s ease;
}

.panel-collapsible[open] > summary .i {
  transform: rotate(180deg);
}

.panel-collapsible > :not(summary) {
  margin: 0;
  padding: 4px 20px 18px;
}

.panel-collapsible > .collapsible-hint {
  max-width: 820px;
  padding-bottom: 8px;
  font-size: 13px;
  line-height: 1.55;
}

/* -------------------------------------------------- 8. Kleine Bildschirme */

@media (max-width: 1100px) {
  .lp-hero-grid,
  .lp-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .lp-hero-visual,
  .lp-split-visual {
    max-width: 600px;
  }

  .bug-layout,
  .ov-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .app,
  .app.has-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-mobilebar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 11, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .app-mobilebar .brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .app-mobilebar-area {
    margin-left: auto;
    overflow: hidden;
    color: var(--fg-muted);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dash-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    height: auto;
    max-width: calc(100vw - 40px);
    box-shadow: var(--shadow-pop);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .dash-side.is-open {
    transform: none;
  }

  html.side-open {
    overflow: hidden;
  }

  html.side-open .app-main::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.55);
    animation: fade-in 0.15s ease;
  }

  .dash-content {
    padding: 20px 16px 56px;
  }

  .dev-columns,
  .dev-columns-wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .burger {
    display: inline-flex;
  }

  .site-head-inner {
    gap: 16px;
    padding: 0 16px;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    height: 40px;
    padding: 0 12px;
  }

  .user-name {
    display: none;
  }

  .user-chip {
    padding-right: 4px;
  }

  .lp-wrap,
  .page {
    padding-right: 16px;
    padding-left: 16px;
  }

  .lp-hero {
    padding: 48px 0 56px;
  }

  .lp-section {
    padding: 56px 0;
  }

  .lp-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-points > div,
  .lp-points > div + div {
    padding: 24px 0;
    border-left: 0;
  }

  .lp-points > div + div {
    border-top: 1px solid var(--border);
  }

  .lp-two {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .docs-layout,
  .legal-layout,
  .legal-others {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .legal-toc {
    position: static;
  }

  .docs-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .docs-toc-title {
    display: none;
  }

  .docs-toc a {
    border: 1px solid var(--border);
    font-size: 13px;
  }

  .docs-toc-extra {
    margin-top: 0;
  }

  .docs-defs > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .docs-help {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-foot-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 16px 28px;
  }

  .site-foot-bottom {
    padding: 16px 16px 28px;
  }

  .mini-list-2col,
  .field-grid,
  .field-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbar-search,
  .toolbar-search input[type="search"],
  .toolbar-search .select,
  .bug-search,
  .bug-search .input[type="search"],
  .bug-search .select,
  .fb-search,
  .fb-search .input[type="search"],
  .fb-search .select {
    width: 100%;
  }

  .bug-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .bug-tags {
    grid-column: 2;
    justify-content: flex-start;
  }

  .modal-foot {
    flex-direction: column-reverse;
  }

  .modal-foot .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .lp-commands > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .lp-compare-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    padding: 10px 12px;
    font-size: 13px;
  }

  .foot-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dw-panel-top {
    flex-direction: column-reverse;
  }

  .dw-cover {
    width: 56px;
    height: 56px;
  }

  .pv-list li {
    grid-template-columns: 20px minmax(0, 1fr) 40px;
  }

  .pv-source {
    display: none;
  }

  .cookie-note {
    right: 16px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* --------------------------------------- 9. Status, Bot- und Server-Einstellungen, Hilfe */

/* Großer Status („Bot nicht mehr drauf“, „Gebannt“ …): soll sofort auffallen */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--hover-strong);
  color: var(--fg-2);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.status-tag .i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  vertical-align: 0;
}

.status-tag.is-danger {
  border-color: rgba(240, 71, 77, 0.6);
  background: rgba(217, 45, 51, 0.16);
  color: #ff7b80;
}

.status-tag.is-success {
  border-color: rgba(62, 207, 142, 0.35);
  background: var(--success-soft);
  color: var(--success-text);
}

.status-tag.is-premium {
  border-color: rgba(157, 140, 255, 0.35);
  background: var(--violet-soft);
  color: var(--violet-text);
}

.status-tag.is-neutral {
  color: var(--fg-muted);
}

.status-tag.is-role {
  border-color: color-mix(in srgb, var(--role) 45%, transparent);
  background: color-mix(in srgb, var(--role) 12%, transparent);
  color: var(--role);
}

.status-tag.is-sm {
  align-self: flex-start;
  gap: 5px;
  height: 22px;
  margin-top: 5px;
  padding: 0 8px 0 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.status-tag.is-sm .i {
  width: 12px;
  height: 12px;
}

.entity-link .status-tag.is-sm {
  align-self: center;
  margin-top: 0;
}

.server-hero-badges {
  gap: 8px;
}

/* Kopf einer Server-/Nutzerseite, wenn der Bot weg oder die Person gesperrt ist */
.server-hero.is-gone {
  border-color: rgba(240, 71, 77, 0.45);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: inset 4px 0 0 var(--accent);
}

.server-hero.is-gone > img,
.server-hero.is-gone > .server-fallback-lg {
  filter: grayscale(1);
  opacity: 0.6;
}

.data-table tr.is-gone td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Formulare der Einstellungen */
.settings-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.unit-field {
  position: relative;
  display: flex;
  align-items: center;
}

.unit-field .input {
  padding-right: 52px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.unit-field .input::-webkit-inner-spin-button,
.unit-field .input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.unit-field-suffix {
  position: absolute;
  right: 12px;
  color: var(--fg-subtle);
  font-size: 12.5px;
  pointer-events: none;
}

.form-subhead {
  margin: 22px 0 10px;
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

/* Felder oben bündig, wenn eines einen Hinweis darunter hat */
.form-row-top {
  align-items: start;
}

.form-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-indent {
  margin: -4px 0 14px 14px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

.settings-note {
  margin-top: 14px;
  font-size: 13px;
}

.color-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-field .input-color {
  width: 46px;
  flex-shrink: 0;
}

.color-field .input:not(.input-color) {
  max-width: 140px;
}

/* Wartezeiten: Normal / Premium nebeneinander */
.tier-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.tier-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.tier-row-head {
  padding: 9px 0;
  color: var(--fg-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.tier-row-head > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tier-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}

.tier-label strong {
  font-size: 13.5px;
  font-weight: 600;
}

.tier-label span {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.tier-row [role="cell"] {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Player-Panel: Formular links, Vorschau rechts */
.panel-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  align-items: start;
  gap: 16px;
}

.panel-editor > .panel {
  margin-bottom: 0;
}

.panel-preview {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-preview-label {
  color: var(--fg-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.panel-preview .dw {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.panel-preview-note {
  font-size: 12.5px;
}

.dw[data-pv] .dw-panel {
  border-left-color: var(--pv-accent, #cf1417);
}

.dw-panel-ended {
  margin-top: 10px;
}

.dw-plain {
  display: block;
  color: #dbdee1;
}

.dw-next {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #3f4147;
  color: #dbdee1;
  font-size: 13.5px;
}

.dw-next strong {
  color: #f2f3f5;
  font-weight: 600;
}

.dw-next code {
  padding: 0 4px;
  border-radius: 3px;
  background: #1e1f22;
  color: #dbdee1;
  font-size: 12px;
}

.dw-footer {
  margin-top: 12px;
  color: #949ba4;
  font-size: 12px;
}

.dw-button-rows {
  flex-direction: column;
}

.dw-button-rows > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-preview .dw-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.settings-fieldset .form-row {
  align-items: start;
}

.settings-indent .unit-field {
  max-width: 240px;
}

/* Eigene Einstellungen eines Servers */
.gs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 16px;
}

.gs-layout > .panel,
.gs-side > .panel:last-child {
  margin-bottom: 0;
}

.gs-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(190px, 250px);
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.settings-fieldset > .gs-option:first-child {
  padding-top: 2px;
  border-top: 0;
}

label.gs-option,
.gs-option-text {
  cursor: pointer;
}

.gs-option-icon,
.gs-summary-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--fg-muted);
}

.gs-option-icon .i,
.gs-summary-icon .i {
  width: 17px;
  height: 17px;
}

.gs-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gs-option-text strong {
  font-size: 13.5px;
  font-weight: 600;
}

.gs-option-text span {
  color: var(--fg-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.gs-switch {
  display: flex;
  justify-content: flex-end;
}

/* app.js legt Auswahllisten in ein eigenes .select-Element – das bekommt die Spalte */
.gs-option > .select {
  grid-column: 3;
}

.gs-actions {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Knopf in einem Hinweiskasten: Beschriftung nicht wie der graue Hinweistext */
.state-box .btn span {
  color: inherit;
  font-size: inherit;
}

.gs-locked .btn {
  flex-shrink: 0;
  margin-left: auto;
}

.gs-note {
  margin-top: 10px;
  font-size: 13px;
}

.gs-summary {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gs-summary li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.gs-summary li:first-child {
  padding-top: 0;
  border-top: 0;
}

.gs-summary-icon {
  width: 32px;
  height: 32px;
}

.gs-summary li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 13px;
}

.gs-summary strong {
  font-weight: 600;
}

.gs-tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--fg-2);
  font-size: 13px;
}

.gs-split {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
}

.link-arrow:hover,
a.ov-server-name:hover {
  color: var(--accent-text);
}

/* Hilfe: Kategorien wie im /help-Menü, Schritte, Befehle */
.help-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -20px 0 52px;
}

.help-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.help-cat:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.help-cat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--fg-2);
}

.help-cat > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.help-cat strong {
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}

.help-cat span span {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.help-steps {
  display: flex;
  flex-direction: column;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
  counter-reset: step;
}

.help-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.help-steps li::before {
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.help-steps strong {
  font-weight: 600;
}

.help-steps span {
  color: var(--fg-2);
}

.help-steps .btn {
  margin-top: 8px;
}

.help-steps .btn span {
  color: inherit;
}

.help-steps-compact {
  margin-bottom: 18px;
}

.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.cmd {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.cmd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.cmd-name {
  padding: 0;
  background: none;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
}

.cmd-where {
  color: var(--fg-subtle);
  font-size: 12.5px;
}

.cmd p {
  margin-top: 6px;
  color: var(--fg-2);
}

.cmd-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cmd-options > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  font-size: 13.5px;
}

.cmd-options dd {
  margin: 0;
  color: var(--fg-muted);
}

.help-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #26282c;
  border-radius: var(--radius-lg);
  background: #2b2d31;
}

.help-table {
  min-width: 0;
}

.help-table td {
  vertical-align: top;
}

.help-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.help-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.help-card.is-premium {
  border-color: rgba(157, 140, 255, 0.3);
}

.help-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--fg-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.help-card.is-premium .help-card-label {
  color: var(--violet-text);
}

.help-card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--fg-2);
}

.docs-content .table-wrap,
.docs-content .faq {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .panel-editor {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  }
}

@media (max-width: 860px) {
  /* Auf dem Handy reichen die Themen-Chips darunter */
  .help-cats {
    display: none;
  }
}

@media (max-width: 960px) {
  .panel-editor,
  .gs-layout,
  .gs-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-preview {
    position: static;
  }

  .help-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tier-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tier-row .tier-label {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .tier-row-head > span:first-child {
    display: none;
  }

  .gs-option {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .gs-option-control,
  .gs-option > .select {
    grid-column: 2 / -1;
  }

  label.gs-option {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  label.gs-option .gs-option-control {
    grid-column: auto;
  }

  .help-split,
  .form-row-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .cmd-options > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (max-width: 560px) {
  .gs-locked {
    flex-wrap: wrap;
  }

  .gs-locked .btn {
    margin-left: 32px;
  }

  .status-tag {
    height: 28px;
    font-size: 13px;
  }
}

/* --------------------------------------- 10. Panel-Editor, Premium-Einstellungen, System, Status */

.status-tag.is-warn {
  border-color: rgba(242, 180, 60, 0.45);
  background: var(--warning-soft);
  color: var(--warning-text);
}

/* Zustände des Panels als Reiter mit Farbpunkt */
.pe-states {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.pe-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.pe-state:hover {
  border-color: var(--border-hover);
}

.pe-state.is-active {
  border-color: var(--fg-muted);
  background: var(--surface-2);
  color: var(--fg);
}

.pe-state:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.pe-state > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.pe-state strong {
  font-size: 13.5px;
  font-weight: 600;
}

.pe-state small {
  overflow: hidden;
  color: var(--fg-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.pe-state-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--accent)) 22%, transparent);
}

.pe-fields {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
}

.pe-fields .field:last-child {
  margin-bottom: 0;
}

.pe-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}

.pe-buttons-hint {
  margin: -4px 0 10px;
}

.pe-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.pe-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}

.pe-button:hover {
  border-color: var(--border-hover);
}

.pe-button:has(input:not(:checked)) .pe-button-icon,
.pe-button:has(input:not(:checked)) .pe-button-name {
  opacity: 0.5;
}

.pe-button input[type="checkbox"].switch-check {
  width: 30px;
  height: 17px;
}

.pe-button input[type="checkbox"].switch-check::before {
  width: 13px;
  height: 13px;
}

.pe-button input[type="checkbox"].switch-check:checked::before {
  transform: translateX(13px);
}

.pe-button-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #4e5058;
  color: #fff;
}

.pe-button-icon .i {
  width: 14px;
  height: 14px;
}

.pe-button-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pe-button .badge {
  height: 18px;
  padding: 0 5px;
  font-size: 10.5px;
}

.panel-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.panel-preview-label strong {
  color: var(--fg);
  font-weight: 600;
}

.pv-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 12.5px;
  cursor: pointer;
}

.pv-premium input[type="checkbox"].switch-check {
  width: 30px;
  height: 17px;
}

.pv-premium input[type="checkbox"].switch-check::before {
  width: 13px;
  height: 13px;
}

.pv-premium input[type="checkbox"].switch-check:checked::before {
  transform: translateX(13px);
}

.dw-btn.is-success {
  background: #248046;
}

/* Premium-Einstellungen: gewählter Server und Auswahl */
.ps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.ps-head > img,
.ps-head > .server-fallback {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  font-size: 18px;
}

.ps-head-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.ps-head-text > strong {
  font-size: 16px;
  font-weight: 600;
}

.ps-head-text > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ps-head-text .status-tag.is-sm {
  margin-top: 0;
}

.ps-picker {
  flex: 0 1 280px;
  min-width: 200px;
}

.ps-picker .field {
  margin-bottom: 0;
}

/* Team → System */
.infra-setup code {
  font-size: 12.5px;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.infra-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.infra-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.infra-head > div {
  flex: 1;
  min-width: 0;
}

.infra-head h2 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.infra-head p {
  margin-top: 2px;
  color: var(--fg-muted);
  font-size: 12.5px;
}

.infra-head .status-tag.is-sm {
  margin-top: 0;
}

.infra-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--fg-2);
}

.infra-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-top: 1px solid var(--border);
}

.infra-rows > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.infra-rows dt {
  color: var(--fg-muted);
}

.infra-rows dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  min-width: 0;
}

.infra-rows .status-tag.is-sm {
  margin-top: 0;
}

.infra-meter {
  position: relative;
  flex: 0 0 90px;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-3);
}

.infra-meter > span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
  background: var(--success);
}

.infra-meter.is-high > span {
  background: var(--accent);
}

.infra-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.cell-actions .infra-actions {
  justify-content: flex-end;
  margin-top: 0;
  padding-top: 0;
}

.infra-note {
  font-size: 12.5px;
}

.infra-foot {
  font-size: 12.5px;
}

/* Status-Seite: weitere Zustände und Kennzeichen rechts */
.status-banner.is-warn {
  border-color: rgba(242, 180, 60, 0.4);
  background: var(--warning-soft);
}

.is-warn .status-pulse {
  background: var(--warning);
  animation: none;
}

.status-banner.is-unknown {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.is-unknown .status-pulse {
  background: var(--fg-subtle);
  animation: none;
}

.status-item > div {
  flex: 1;
  min-width: 0;
}

.status-item.is-warn {
  border-color: rgba(242, 180, 60, 0.4);
}

.status-item.is-warn > .i {
  color: var(--warning);
}

.status-item.is-unknown > .i {
  color: var(--fg-subtle);
}

.status-state {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--hover-strong);
  font-size: 12px !important;
  font-weight: 600;
}

.status-item.is-ok .status-state {
  background: var(--success-soft);
  color: var(--success-text) !important;
}

.status-item.is-warn .status-state {
  background: var(--warning-soft);
  color: var(--warning-text) !important;
}

.status-item.is-bad .status-state {
  background: var(--accent-soft);
  color: var(--accent-text) !important;
}

@media (max-width: 960px) {
  .infra-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .pe-states {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pe-toggles {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-picker {
    flex-basis: 100%;
  }

  .infra-rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* Symbol-Kästchen in Tabellen (z. B. Playlists): nicht von „.cell-entity > span“ (Spalte) erfassen lassen */
.cell-entity > .entity-icon {
  display: inline-grid;
  place-items: center;
}

/* Premium-Einstellungen: Server als Karten */
.ps-servers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.ps-server {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.ps-server:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.ps-server.is-active {
  border-color: rgba(157, 140, 255, 0.55);
  background: var(--violet-soft);
}

.ps-server.is-free {
  opacity: 0.75;
}

.ps-server > img,
.ps-server > .server-fallback {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}

.ps-server > .i {
  flex-shrink: 0;
  color: var(--fg-subtle);
}

.ps-server.is-active > .i {
  color: var(--violet-text);
}

.ps-server-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ps-server-text strong {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-server-text > span {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.ps-server-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.ps-hint {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ps-selected h3 {
  margin: 4px 0 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.gs-access {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.gs-access .field {
  max-width: 520px;
  margin-bottom: 0;
}

/* --------------------------------------------- 11. Datenschutz: „Deine Daten“ und Datenanfragen */

.privacy-box .legal-no .i {
  width: 14px;
  height: 14px;
}

.privacy-login {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--fg-2);
}

.privacy-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.privacy-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.privacy-action > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.privacy-action strong {
  font-weight: 600;
}

.privacy-action > div > span {
  color: var(--fg-muted);
  font-size: 13px;
}

.privacy-action.is-danger {
  border-color: rgba(240, 71, 77, 0.35);
}

.privacy-action-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg-2);
}

.privacy-action.is-danger .privacy-action-icon {
  border-color: rgba(240, 71, 77, 0.4);
  color: #ff7b80;
}

.privacy-state {
  margin-top: 4px;
  color: var(--fg-2) !important;
}

.privacy-state.is-open {
  color: var(--warning-text) !important;
}

.privacy-note {
  margin-top: 10px;
  font-size: 13px;
}

/* Roter, fetter Warnkasten vor der Löschung */
.privacy-warning {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(240, 71, 77, 0.6);
  border-radius: var(--radius-md);
  background: rgba(217, 45, 51, 0.14);
  color: #ff8a8f;
}

.privacy-warning > .i {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.privacy-warning > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.privacy-warning strong {
  color: #ff7b80;
  font-size: 15px;
  font-weight: 750;
}

.privacy-warning span {
  color: #ffb3b6;
}

.privacy-confirm {
  margin-bottom: 0;
  border-color: rgba(240, 71, 77, 0.35);
}

.privacy-keep {
  margin-top: 4px;
  font-size: 13px;
}

/* Datenanfragen im Team-Bereich */
.privacy-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.privacy-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.privacy-row.is-delete {
  box-shadow: inset 3px 0 0 var(--accent);
  padding-left: 12px;
}

.privacy-row-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  font-size: 13px;
}

.privacy-row-info .status-tag.is-sm {
  margin-top: 0;
}

.privacy-mail {
  font-size: 12.5px;
}

.privacy-error {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-text);
}

.privacy-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 860px) {
  .privacy-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .privacy-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .privacy-action {
    flex-wrap: wrap;
  }

  .privacy-action > .btn {
    width: 100%;
  }
}

/* ------------------------------------------- 12. Test-Premium & Aufgaben */
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.badge-gold {
  background: rgba(227, 179, 65, 0.14);
  color: #f0cd78;
}

/* Übersicht: behobene Aufgabe (früher fehlgeschlagen) */
.status-dot.status-resolved {
  background: var(--info);
}

/* Premium-Seite: Angebot, Test läuft */
.trial-card {
  position: relative;
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(227, 179, 65, 0.32);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(227, 179, 65, 0.12), transparent 55%),
    var(--surface);
}

.trial-card.is-running {
  border-color: rgba(227, 179, 65, 0.22);
}

.trial-card-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(227, 179, 65, 0.14);
  color: var(--gold);
}

.trial-card-icon .i {
  width: 22px;
  height: 22px;
}

.trial-card-body {
  min-width: 0;
  flex: 1;
}

.trial-card-body h2 {
  margin: 2px 0 6px;
  font-size: 20px;
}

.trial-card-body > p {
  margin: 0;
  color: var(--fg-2);
  max-width: 68ch;
}

.trial-card .hero-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.trial-servers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.trial-servers li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
}

.trial-servers img,
.trial-servers .server-fallback {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.trial-server-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.trial-server-text strong,
.trial-server-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trial-server-text span {
  font-size: 13px;
}

.trial-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--fg-muted);
  font-size: 13px;
}

.trial-note .i {
  color: var(--success);
}

.trial-ended {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg-2);
  font-size: 14px;
}

/* Team-Bereich: Angebote */
.trial-offers {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.trial-offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.trial-offer.is-off .trial-offer-main {
  opacity: 0.6;
}

.trial-offer-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
}

.trial-offer-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.trial-offer-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.trial-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--fg-2);
  font-size: 13px;
}

.trial-offer-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trial-offer-meta .i {
  color: var(--fg-muted);
}

.trial-offer-text {
  margin: 2px 0 0;
  color: var(--fg-muted);
  font-size: 13px;
}

.trial-offer-stats {
  font-size: 12.5px;
}

.trial-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 12px;
  font-size: 13px;
}

.data-table .row-actions {
  flex-wrap: nowrap;
}

.trial-alert {
  margin: 14px 0 0;
}

.trial-modal-hint {
  margin: -4px 0 12px;
}

@media (max-width: 860px) {
  .trial-offer {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .trial-offer > .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .trial-card {
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px;
  }

  .trial-servers li {
    flex-wrap: wrap;
  }

  .trial-servers li > .btn {
    width: 100%;
  }
}

/* ------------------------------------- 13. Status-Karten & weitere Server */
.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.status-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.status-card.is-warn {
  border-color: rgba(242, 180, 60, 0.4);
}

.status-card.is-bad {
  border-color: rgba(230, 60, 66, 0.45);
}

.status-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-card-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--success);
}

.status-card-icon .i {
  width: 19px;
  height: 19px;
}

.status-card.is-warn .status-card-icon {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-card.is-bad .status-card-icon {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.status-card.is-unknown .status-card-icon {
  background: var(--hover-strong);
  color: var(--fg-subtle);
}

.status-card-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.status-card-name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.status-card-name strong {
  font-size: 14.5px;
  line-height: 1.35;
}

.status-card-title > span {
  color: var(--fg-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.status-card.is-ok .status-state {
  background: var(--success-soft);
  color: var(--success-text);
}

.status-card.is-warn .status-state {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.status-card.is-bad .status-state {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.status-card.is-unknown .status-state {
  color: var(--fg-muted);
}

.status-facts {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.status-facts[hidden] {
  display: none;
}

.status-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px;
}

.status-facts dt {
  color: var(--fg-muted);
}

.status-facts dd {
  margin: 0;
  color: var(--fg-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Team → System: weitere Server */
.infra-extra {
  margin-top: 8px;
}

.infra-extra > .section-head {
  margin-bottom: 14px;
}

.infra-public {
  margin-top: 12px;
}

.infra-public .switch-row {
  margin-bottom: 0;
}

.infra-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.infra-card-foot .infra-actions {
  margin-top: 0;
  padding-top: 0;
}

.infra-manage {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.infra-note .i {
  vertical-align: -2px;
}

/* Team → Server verwalten: Einladungslinks */
.invite-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.invite-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.invite-row.is-expired .invite-main {
  opacity: 0.55;
}

.invite-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--info-soft);
  color: var(--info);
}

.invite-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.invite-url {
  overflow: hidden;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-row.is-expired .invite-url {
  text-decoration: line-through;
}

.invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: var(--fg-2);
  font-size: 13px;
}

.invite-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.invite-meta .i {
  color: var(--fg-muted);
}

.invite-by,
.invite-nodelete {
  font-size: 12.5px;
}

.invite-pending {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--fg-2);
  font-size: 13.5px;
}

.invite-alert {
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .invite-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .invite-row > .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* --------------------- 14. Eigene Nachricht (Verwaltung) & Discord-Vorschau */
.msg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 20px;
  align-items: start;
}

.msg-form-panel {
  margin-bottom: 0;
}

.msg-side {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.msg-color {
  max-width: 140px;
}

.msg-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
}

.msg-recent {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .msg-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .msg-side {
    position: static;
  }
}

.dcx-content {
  margin-bottom: 6px;
  color: #dbdee1;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.dcx-embed[hidden],
.dcx-content[hidden] {
  display: none;
}

.dcx-embed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.dcx-thumb {
  width: 80px;
  height: 80px;
  margin-top: 8px;
  border-radius: 4px;
  object-fit: cover;
}

.dcx-thumb[hidden],
.dcx-image[hidden] {
  display: none;
}

.dcx-embed-author {
  margin: 4px 0;
  color: #f2f3f5;
  font-size: 13px;
  font-weight: 600;
}

.dcx-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.dcx-buttons[hidden] {
  display: none;
}

.dcx-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: #4e5058;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.dcx-button svg {
  width: 14px;
  height: 14px;
}

.dcx-empty {
  margin: 6px 0 0;
  font-size: 13px;
}

/* Discord-Markdown in der Vorschau */
.dcx-md code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #1e1f22;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.dcx-md .md-pre {
  margin: 6px 0;
  padding: 8px 10px;
  border: 1px solid #1e1f22;
  border-radius: 4px;
  background: #2b2d31;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: pre-wrap;
}

.dcx-md .md-quote {
  margin: 2px 0;
  padding-left: 12px;
  border-left: 4px solid #4e5058;
  border-radius: 2px;
}

/* Leerzeile genau wie eingegeben (eine Zeilenhöhe) */
.dcx-md .md-blank {
  display: block;
  height: 1.375em;
}

.dcx-md .md-sub {
  display: block;
  color: #949ba4;
  font-size: 12px;
}

.dcx-md .md-h {
  display: block;
  margin: 8px 0 2px;
  color: #f2f3f5;
  font-weight: 700;
  line-height: 1.25;
}

.dcx-md .md-h:first-child {
  margin-top: 0;
}

.dcx-md .md-h1 {
  font-size: 22px;
}

.dcx-md .md-h2 {
  font-size: 19px;
}

.dcx-md .md-h3 {
  font-size: 16px;
}

.dcx-md .md-li {
  position: relative;
  display: block;
  padding-left: 18px;
}

.dcx-md .md-li::before {
  content: "•";
  position: absolute;
  left: 5px;
}

.dcx-md .md-mention {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  font-weight: 500;
}

.dcx-md .md-time {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.dcx-md .md-spoiler {
  border-radius: 3px;
  background: #1e1f22;
  color: transparent;
  transition: color 0.12s ease;
}

.dcx-md .md-spoiler:hover {
  color: inherit;
}

.dcx-md a {
  color: #00a8fc;
}

/* Rollen & Rechte: Verknüpfung mit einer Discord-Rolle */
.role-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--info-text) !important;
  font-size: 12px !important;
}

.role-sync-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.role-sync-warn {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(242, 180, 60, 0.35);
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--warning-text);
  font-size: 13px;
}

.role-sync-warn .i {
  flex-shrink: 0;
  margin-top: 2px;
}

.role-discord-field {
  margin: 4px 0 16px;
}

.role-discord-field .field-label .i {
  vertical-align: -2px;
}

/* Lange Rollen-IDs dürfen umbrechen, sonst schieben sie auf dem Handy die Knöpfe aus der Karte */
.role-card-text {
  min-width: 0;
}

.role-link {
  overflow-wrap: anywhere;
}

.role-link.is-broken {
  align-items: flex-start;
  color: var(--warning-text) !important;
}

.role-link.is-broken .i {
  flex-shrink: 0;
  margin-top: 2px;
}

.role-sync-note {
  margin-top: 8px;
}

/* Abgleich-Stand (meldet der Verwaltungs-Bot) */
.role-sync-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.role-sync-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  color: var(--fg-2);
  font-size: 13px;
}

.role-sync-line > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.role-sync-issues {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-sync-issues li {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--warning-text);
  font-size: 12.5px;
  line-height: 1.45;
}

.role-sync-issues .i {
  flex-shrink: 0;
  margin-top: 2px;
}

.role-sync-throttle {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--info-soft);
  color: var(--info-text);
  font-size: 12.5px;
  line-height: 1.45;
}

.role-sync-throttle .i {
  flex-shrink: 0;
  margin-top: 2px;
}

.role-sync-tasks li {
  padding: 8px 10px;
  font-size: 12.5px;
}

.role-sync-tasks .muted {
  flex-basis: 100%;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------ 15. Musik-Bot: Texte & Embeds */
.mt-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.mt-top > .panel {
  margin-bottom: 0;
}

.mt-shop .switch-row {
  margin-bottom: 8px;
}

.mt-shop .switch-row strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mt-shop-note {
  margin: 0;
  font-size: 12.5px;
}

.mt-hints {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.mt-hints p {
  display: flex;
  gap: 8px;
  margin: 0;
  color: var(--fg-2);
  font-size: 13px;
}

.mt-hints .i {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--fg-muted);
}

.mt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 16px;
}

.mt-nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mt-nav-label {
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mt-nav-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg-2);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.mt-chip:hover {
  border-color: var(--border-hover);
  color: var(--fg);
}

.mt-chip.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--fg);
}

.mt-chip small {
  padding: 0 6px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning-text);
  font-size: 10.5px;
  line-height: 17px;
}

.mt-form {
  margin-bottom: 0;
}

.mt-form .form-actions {
  margin-top: 20px;
}

.mt-look {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.mt-look.no-color {
  grid-template-columns: minmax(0, 1fr) auto;
}

.mt-color {
  width: 96px;
}

.mt-kicker {
  margin: 12px 0 0;
}

/* Titel und (eigene) Farbe einer Variante nebeneinander */
.mt-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.mt-title-row.has-color {
  grid-template-columns: minmax(0, 1fr) auto;
}

.cv2-text + .cv2-sep,
[data-pv-more] .cv2-text {
  margin-top: 0;
}

.mt-look .field,
.mt-look .switch-row {
  margin-bottom: 0;
}

.mt-thumb {
  min-height: 36px;
  padding: 7px 12px;
}

.mt-heading {
  margin: 22px 0 10px;
}

.mt-buttons {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  list-style: none;
}

.mt-button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.mt-button:last-child {
  border-bottom: 0;
}

.mt-button-toggle {
  display: inline-flex;
  margin-top: 9px;
  cursor: pointer;
}

.mt-button-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mt-button-meta {
  color: var(--fg-muted);
  font-size: 12px;
}

.mt-button-warn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--warning-text);
  font-size: 12px;
}

.mt-button.is-shop-off .input {
  opacity: 0.6;
}

.mt-small {
  margin: 8px 0 0;
  font-size: 12px;
}

.mt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.mt-tab {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.mt-tab:hover {
  color: var(--fg);
}

.mt-tab.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--fg);
}

.mt-tab.is-part {
  border-style: dashed;
}

.mt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
}

.mt-variant[hidden] {
  display: none;
}

.mt-body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}

.mt-part-hint,
.mt-note {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--fg-2);
  font-size: 13px;
}

.mt-note {
  margin: 14px 0 0;
}

.mt-part-hint .i,
.mt-note .i {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--info-text);
}

.mt-variant-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.mt-vars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.mt-var-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mt-var {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--fg-muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.mt-var:hover {
  border-color: var(--border-hover);
  color: var(--fg-2);
}

.mt-var code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--info-soft);
  color: var(--info-text);
  font-size: 11.5px;
}

.mt-var span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mt-preview-note {
  margin: 8px 0 0;
  color: #949ba4;
  font-size: 12px;
}

/* Components-V2-Container wie in Discord */
.cv2 {
  max-width: 520px;
  padding: 14px 16px 12px;
  border: 1px solid #3f4147;
  border-left: 4px solid var(--cv2-accent, #cf1417);
  border-radius: 8px;
  background: #2b2d31;
}

.cv2-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.cv2-text {
  min-width: 0;
  color: #dbdee1;
  overflow-wrap: anywhere;
}

.cv2-thumb {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.cv2-thumb[hidden],
.cv2-sep[hidden],
.cv2-menu[hidden] {
  display: none;
}

.cv2-sep {
  height: 1px;
  margin: 12px 0 10px;
  background: #3f4147;
}

.cv2-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid #1e1f22;
  border-radius: 8px;
  background: #1e1f22;
  color: #949ba4;
  font-size: 14px;
}

.cv2-menu svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cv2-buttons {
  margin-top: 0;
}

.dcx-button.is-primary {
  background: #5865f2;
}

.cv2-emoji {
  font-size: 15px;
  line-height: 1;
}

.cv2-footer {
  margin-top: 10px;
}

.web-sales-note {
  margin: 10px 0 0;
  font-size: 12.5px;
}

.vw-texts-cross {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
}

.vw-texts-cross .i {
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .mt-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .mt-look {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mt-thumb {
    grid-column: 1 / -1;
  }

  .mt-nav {
    flex-direction: column;
  }
}

/* ------------------------------------------------ 16. Team & Partner (Webseite und Editor) */
.people-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.people-head {
  max-width: 720px;
}

.people-head h1 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
}

.people-head p {
  margin: 0;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.6;
}

.people-group h2 {
  margin: 0 0 14px;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.person-card {
  --accent-person: #e63c42;
  --card-bg: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-person) 28%, var(--border));
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.person-card:hover {
  border-color: color-mix(in srgb, var(--accent-person) 70%, transparent);
  box-shadow: 0 14px 36px -18px color-mix(in srgb, var(--accent-person) 80%, transparent);
  transform: translateY(-3px);
}

/* Banner: eigenes Bild, Discord-Banner oder ein Verlauf in der Farbe der Person */
.person-banner,
.partner-banner {
  position: relative;
  height: 92px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent-person) 75%, transparent), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-person) 55%, #000) 0%, color-mix(in srgb, var(--accent-person) 18%, var(--card-bg, var(--surface))) 100%);
}

.person-banner img,
.partner-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 18px 20px;
}

.person-avatar {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  margin: -46px 0 6px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--card-bg, var(--surface)), 0 0 0 6px var(--accent-person);
}

.person-avatar-fallback,
.partner-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent-person) 22%, var(--surface-2));
  color: color-mix(in srgb, var(--accent-person) 70%, #fff);
  font-weight: 700;
}

.person-avatar-fallback {
  font-size: 34px;
}

.person-card h3 {
  margin: 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.person-role {
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-person) 16%, transparent);
  color: color-mix(in srgb, var(--accent-person) 60%, #fff);
  font-size: 12.5px;
  font-weight: 600;
}

.person-card p {
  margin: 6px 0 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.person-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 12.5px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.person-links a:hover {
  border-color: color-mix(in srgb, var(--accent-person) 60%, transparent);
  background: color-mix(in srgb, var(--accent-person) 12%, transparent);
  color: var(--fg);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.partner-card {
  --accent-person: #e63c42;
  --card-bg: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-person) 28%, var(--border));
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* Eigene Kartenfarbe: gemischt, damit die helle Schrift lesbar bleibt */
.person-card.has-card-color,
.partner-card.has-card-color {
  --card-bg: color-mix(in srgb, var(--card-color) 26%, var(--surface));
}

.partner-card:hover {
  border-color: color-mix(in srgb, var(--accent-person) 70%, transparent);
  box-shadow: 0 14px 36px -18px color-mix(in srgb, var(--accent-person) 80%, transparent);
  transform: translateY(-3px);
}

.partner-card.is-featured {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-person) 55%, transparent);
}

.partner-banner {
  height: 78px;
}

.partner-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 20px;
}

.partner-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: -36px;
}

.partner-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--card-bg, var(--surface)), 0 0 0 5px color-mix(in srgb, var(--accent-person) 55%, transparent);
}

.partner-logo-fallback {
  font-size: 28px;
}

.partner-name {
  min-width: 0;
  /* Name beginnt unter dem Banner, nur das Logo ragt hinein */
  padding-top: 44px;
}

.partner-name h2 {
  margin: 0 0 6px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.partner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  color: var(--fg-muted);
  font-size: 13px;
}

.partner-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.partner-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
}

.partner-text {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.people-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
}

.people-cta h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.people-cta p {
  margin: 0;
  color: var(--fg-2);
}

/* Editor im Dashboard */
.people-editor .panel {
  margin-bottom: 16px;
}

.people-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 8px;
}

.people-list-head .side-heading {
  margin: 0;
}

.people-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.people-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 14px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.people-row-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
}

.people-row-main .field,
.people-row-main .switch-row {
  margin-bottom: 10px;
}

.people-row-wide {
  grid-column: 1 / -1;
}

.people-row-span2 {
  grid-column: span 2;
}

.color-pair {
  display: flex;
  gap: 8px;
}

.color-pair .input-color {
  width: 46px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
}

.color-pair .input {
  min-width: 0;
}

.people-row-main .textarea {
  min-height: 62px;
}

.people-row-switch {
  align-self: end;
  padding: 7px 12px;
}

.people-row-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.people-empty {
  margin: 0 0 12px;
}

@media (max-width: 900px) {
  .people-row-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .people-row,
  .people-row-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .people-row-span2 {
    grid-column: auto;
  }

  .people-row-tools {
    flex-direction: row;
    justify-content: flex-end;
    padding-bottom: 10px;
  }
}

/* ------------------------------------------------ 17. Abmeldungen (Team) */
.absence-heading {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 8px;
}

.absence-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.absence-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.absence-row.is-active {
  border-color: rgba(230, 60, 66, 0.35);
  box-shadow: inset 3px 0 0 var(--accent);
}

.absence-row.is-over,
.absence-row.is-done {
  background: transparent;
}

.absence-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.absence-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.absence-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.absence-title strong {
  overflow-wrap: anywhere;
}

.absence-title .muted {
  font-size: 12.5px;
}

.absence-time {
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.absence-time .muted {
  white-space: nowrap;
}

.absence-reason {
  margin: 2px 0 0;
  color: var(--fg-2);
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.absence-meta {
  margin: 0;
  font-size: 12.5px;
}

.absence-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12.5px;
  white-space: nowrap;
}

.absence-mine {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13.5px;
}

.absence-hint {
  margin: 0 0 4px;
  font-size: 12.5px;
}

@media (max-width: 560px) {
  .absence-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .absence-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ------------------------------------------------ 18. Entbannungsanträge: Verlauf, Notizen, Chat */
.appeal-card.is-unread {
  border-color: rgba(94, 174, 255, 0.45);
}

.appeal-title {
  color: var(--fg);
}

.appeal-title:hover {
  text-decoration: underline;
}

.appeal-text-clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.appeal-actions {
  flex-wrap: wrap;
  align-items: center;
}

.appeal-actions-gap {
  flex: 1;
}

.appeal-counts {
  font-size: 12.5px;
}

.appeal-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.appeal-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.appeal-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
}

.appeal-msg {
  max-width: 88%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.appeal-msg p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.appeal-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 13px;
}

.appeal-msg-head .muted {
  font-size: 12px;
}

/* Person links, Team rechts – im Team-Bereich umgekehrt (eigene Seite rechts) */
.appeal-msg.is-user {
  align-self: flex-start;
}

.appeal-msg.is-team {
  align-self: flex-end;
  border-color: rgba(157, 140, 255, 0.35);
  background: var(--violet-soft);
}

.appeal-thread.is-team-view .appeal-msg.is-team,
.appeal-thread.is-team-view .appeal-msg.is-note {
  align-self: flex-end;
}

.appeal-msg.is-note {
  border-style: dashed;
  border-color: rgba(255, 176, 32, 0.45);
  background: var(--warning-soft);
}

.appeal-msg.is-note .appeal-msg-head {
  color: var(--warning-text);
}

.appeal-msg.is-decision {
  align-self: stretch;
  max-width: none;
}

.appeal-msg.is-decision.is-accepted {
  border-color: rgba(61, 220, 132, 0.4);
  background: var(--success-soft);
}

.appeal-msg.is-decision.is-rejected {
  border-color: rgba(230, 60, 66, 0.4);
  background: var(--accent-soft);
}

.appeal-composer,
.appeal-reply {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.appeal-composer-kind {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chip-radio {
  position: relative;
  cursor: pointer;
}

.chip-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-radio span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 12.5px;
}

.chip-radio input:checked + span {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.chip-radio input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.appeal-decide {
  justify-content: flex-start;
  margin-bottom: 8px;
}

.appeal-side-hint {
  margin: 0 0 8px;
  font-size: 12.5px;
}

.appeal-detail aside .side-heading {
  margin-top: 18px;
}

.appeal-own-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.appeal-own {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.appeal-own.is-compact {
  padding: 10px 14px;
}

@media (max-width: 560px) {
  .appeal-msg {
    max-width: 100%;
  }
}

/* ------------------------------------------------ 19. Premium-Rolle (Support-Server) */
.premium-role-form {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.premium-role-form .side-heading {
  margin-top: 0;
}

.premium-role-form > p {
  margin: 0 0 10px;
  font-size: 13px;
}

.premium-role-panel .meter-row {
  margin-bottom: 12px;
}

.premium-role-panel .role-sync-throttle,
.premium-role-panel .role-sync-issues {
  margin-top: 10px;
}

.ps-role p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

.ps-role .ps-role-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

/* ------------------------------------------------ 20. Suchfeld mit Lupe, Links in der Hilfe */
.search-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.search-input > .i {
  position: absolute;
  left: 11px;
  color: var(--fg-subtle);
  pointer-events: none;
}

.search-input > .input {
  width: 260px;
  max-width: 100%;
  padding-left: 33px;
}

.mod-toolbar .segmented {
  max-width: 100%;
}

/* Links in Antworten (Hilfe, FAQ): sonst sehen sie aus wie normaler Text */
.faq details p a {
  color: var(--fg);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.faq details p a:hover {
  color: var(--accent-text);
  text-decoration-color: currentColor;
}

@media (max-width: 560px) {
  .search-input,
  .search-input > .input {
    width: 100%;
  }

  .mod-search {
    width: 100%;
  }
}

/* ------------------------------------------------ 21. Ticket-Transkripte */
.transcript-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.transcript-reason {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13.5px;
}

.transcript-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 260px);
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #1e1f22;
}

.transcript-note {
  margin: 10px 0 0;
  font-size: 12.5px;
}

.transcript-note + .transcript-frame {
  margin-top: 10px;
}

.ticket-list,
.db-note {
  margin-top: 14px;
}

.ticket-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--fg);
}

.ticket-title:hover strong {
  text-decoration: underline;
}

.ticket-reason {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* ------------------------------------------------ 22. Verwaltung → Datenbank */
.db-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.db-facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.db-facts li > span {
  color: var(--fg-muted);
  font-size: 12.5px;
}

.db-facts strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.db-error {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.db-actions {
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .db-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------ 23. Startseite: Vorführung des Player-Panels */
.dw-body {
  position: relative;
}

.dw-typing {
  position: absolute;
  top: 46px;
  left: 18px;
  display: none;
  align-items: center;
  gap: 8px;
  color: #b5bac1;
  font-size: 13px;
}

.dw-typing strong {
  color: #f2f3f5;
}

.dw-typing-dots {
  display: inline-flex;
  gap: 3px;
}

.dw-typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b5bac1;
  animation: dw-typing 1s infinite ease-in-out;
}

.dw-typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.dw-typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dw-typing {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* Einblenden (nur mit JavaScript, sonst steht alles sofort da) */
.dw.is-intro .dw-reply,
.dw.is-intro .dw-msg {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.dw.is-intro.show-reply .dw-reply,
.dw.is-intro.show-msg .dw-msg {
  opacity: 1;
  transform: none;
}

.dw.show-typing .dw-typing {
  display: inline-flex;
}

/* „Jetzt läuft“ mit pulsierendem Punkt */
.dw-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dw-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ed4245;
  box-shadow: 0 0 0 0 rgba(237, 66, 69, 0.6);
  animation: dw-live 1.8s infinite;
}

@keyframes dw-live {
  0% {
    box-shadow: 0 0 0 0 rgba(237, 66, 69, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(237, 66, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(237, 66, 69, 0);
  }
}

.dw.is-paused .dw-live {
  background: #949ba4;
  animation: none;
}

/* Cover: Farbe je Titel, Equalizer während der Wiedergabe */
.dw-cover {
  position: relative;
  overflow: hidden;
  filter: hue-rotate(var(--cover-hue, 0deg));
  transition: filter 0.6s ease;
}

.dw-eq {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.dw-eq i {
  width: 4px;
  height: 30%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: dw-eq 0.9s infinite ease-in-out alternate;
}

.dw-eq i:nth-child(2) {
  animation-duration: 0.7s;
  animation-delay: -0.3s;
}

.dw-eq i:nth-child(3) {
  animation-duration: 1.1s;
  animation-delay: -0.6s;
}

.dw-eq i:nth-child(4) {
  animation-duration: 0.8s;
  animation-delay: -0.1s;
}

@keyframes dw-eq {
  from {
    height: 20%;
  }

  to {
    height: 100%;
  }
}

.dw.is-paused .dw-eq i {
  animation-play-state: paused;
}

/* Titelwechsel */
.dw-title,
.dw-artist {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dw.is-switching .dw-title,
.dw.is-switching .dw-artist {
  opacity: 0;
  transform: translateY(-4px);
}

.dw-track > span {
  transition: width 0.9s linear;
}

/* Pause / Weiter */
.dw-icon-pause,
.dw-icon-play {
  display: inline-flex;
}

.dw.is-paused [data-demo-pause] .dw-icon-pause,
.dw:not(.is-paused) [data-demo-pause] .dw-icon-play {
  display: none;
}

.dw-btn {
  transition: transform 0.15s ease, filter 0.15s ease;
}

.dw-btn.is-pressed {
  animation: dw-press 0.35s ease;
}

@keyframes dw-press {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(0.92);
    filter: brightness(1.25);
  }

  100% {
    transform: scale(1);
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dw-live,
  .dw-eq i,
  .dw-typing-dots i {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
