/* AFKSystems – Design nach index-hosting.com.
 *
 * Die Farb-, Radius- und Schriftmarken sind dieselben (Primär #206cfe, Host Grotesk, Ringe statt
 * Rahmen, weiche 2xl-Kanten auf ruhigem Grund). Dazu kommt, was ein AFK-Panel braucht und dort
 * nicht vorkommt: Zustandspunkte, Konsolenflächen und eine Seitenleiste mit Serverprofilen.
 * Alles in einer Datei, ohne Bauschritt.
 */

/* ---------------------------------------------------------------- Schrift */

@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/host-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Host Grotesk';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/host-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- Marken */

:root {
  --background: #fefeff;
  --surface: #f2f5f9;
  --surface-2: #ffffff;
  --primary: #206cfe;
  --primary-ink: #ffffff;
  --text: #171717;
  --text-2: #4b5563;
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.05);
  --grid-line: rgba(0, 0, 0, 0.06);

  --ok: #00bb7f;
  --warn: #fcbb00;
  --bad: #e40014;
  --info: #206cfe;

  --r-sm: 0.25rem;
  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --r-2xl: 1rem;
  --r-3xl: 1.5rem;

  --sans: 'Host Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
  --page: 80rem;
}

:root[data-theme='dark'],
:root:not([data-theme='light']) {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --background: #121213;
    --surface: #1b1b1d;
    --surface-2: #202023;
    --text: #ffffff;
    --text-2: #d4d4d8;
    --line: rgba(255, 255, 255, 0.1);
    --line-soft: rgba(255, 255, 255, 0.06);
    --grid-line: rgba(255, 255, 255, 0.03);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --background: #121213;
  --surface: #1b1b1d;
  --surface-2: #202023;
  --text: #ffffff;
  --text-2: #d4d4d8;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --grid-line: rgba(255, 255, 255, 0.03);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- Grundlage */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  line-height: 1.15;
}
h3 {
  font-size: 1.125rem;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Ohne feste Größe füllt ein SVG seinen Kasten aus – Symbole brauchen deshalb ein Grundmaß,
   das einzelne Stellen (Knöpfe, Hinweise) danach überschreiben dürfen. */
.icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-md);
}

::selection {
  background: color-mix(in oklab, var(--primary) 25%, transparent);
}

/* Bildlaufleisten dezent halten – die Konsolenflächen sind sonst laut. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* ---------------------------------------------------------------- Hilfsklassen */

.page {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .page {
    padding-inline: 2rem;
  }
}

.muted {
  color: var(--text-2);
}
.small {
  font-size: 0.8125rem;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.light {
  font-weight: 300;
}
.strong {
  font-weight: 600;
}
.row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.row.wrap {
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.grow {
  flex: 1;
  min-width: 0;
}
.hide {
  display: none !important;
}
.center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lead {
  color: var(--text-2);
  font-size: 1.0625rem;
  font-weight: 300;
}
@media (min-width: 640px) {
  .lead {
    font-size: 1.125rem;
  }
}

/* Die Marke aus dem Vorbild: farbig hinterlegtes Wort in der Überschrift. */
.mark {
  background: var(--primary);
  color: var(--primary-ink);
  padding-inline: 0.35rem;
  border-radius: var(--r-sm);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.caret {
  display: inline-block;
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------------------------------------------------------------- Knöpfe */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1.05rem;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s, opacity 0.15s, transform 0.15s;
}
.btn:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--primary);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  color: var(--primary-ink);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover:not(:disabled) {
  background: color-mix(in oklab, var(--primary) 88%, black);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.btn-ok {
  background: var(--ok);
  box-shadow: inset 0 0 0 1px var(--ok);
  color: #04170f;
}
.btn-danger {
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bad) 45%, transparent);
  color: var(--bad);
}
.btn-danger:hover:not(:disabled) {
  background: color-mix(in oklab, var(--bad) 10%, transparent);
  box-shadow: inset 0 0 0 1px var(--bad);
}
.btn-ghost {
  background: transparent;
  box-shadow: none;
  color: var(--text-2);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface);
  box-shadow: none;
  color: var(--text);
}
.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
}
.btn-lg {
  padding: 0.8rem 1.35rem;
  font-size: 0.9375rem;
}
.btn-block {
  width: 100%;
}
.btn .icon {
  width: 1rem;
  height: 1rem;
}

/* ---------------------------------------------------------------- Flächen */

.card {
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 1.25rem;
}
.card.plain {
  background: transparent;
}
.card.tight {
  padding: 0.9rem;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-head h3 {
  font-size: 1rem;
  font-weight: 600;
}

.panel {
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  box-shadow: inset 0 -1px 0 var(--line-soft);
}
.panel > header h3 {
  font-size: 0.9375rem;
}
.panel > .body {
  padding: 1.1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}
.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}
.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

/* ---------------------------------------------------------------- Zustände */

.dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
}
.dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
}
.dot.live::before {
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.dot::after {
  content: '';
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem 0.2rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in oklab, currentColor 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, currentColor 25%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.state.online {
  color: var(--ok);
}
.state.connecting,
.state.starting,
.state.reconnecting,
.state.stopping {
  color: var(--warn);
}
.state.offline,
.state.disconnected {
  color: var(--text-2);
}
.state.error {
  color: var(--bad);
}
.state.auth {
  color: var(--warn);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
}
.pill.primary {
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 35%, transparent);
  color: var(--primary);
}
.pill.missing {
  background: color-mix(in oklab, var(--warn) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--warn) 35%, transparent);
  color: color-mix(in oklab, var(--warn) 80%, var(--text));
}

/* ---------------------------------------------------------------- Formulare */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field > label {
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
}
.field .hint {
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 400;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='url'],
input[type='search'],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9375rem;
  transition: box-shadow 0.15s;
}
input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 45%, var(--line));
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary);
}
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
}
textarea {
  min-height: 5rem;
  resize: vertical;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1rem center, right 0.7rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.switch {
  position: relative;
  width: 2.4rem;
  height: 1.35rem;
  flex: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.15s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 0.175rem;
  left: 0.175rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.switch[aria-checked='true'] {
  background: var(--primary);
}
.switch[aria-checked='true']::after {
  transform: translateX(1.05rem);
}

/* ---------------------------------------------------------------- Tabellen */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table th {
  padding: 0.55rem 0.75rem;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.table td {
  padding: 0.6rem 0.75rem;
  box-shadow: inset 0 1px 0 var(--line-soft);
  vertical-align: middle;
}
.table tbody tr:hover td {
  background: color-mix(in oklab, var(--primary) 4%, transparent);
}
.table-wrap {
  overflow-x: auto;
}

.head {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  border-radius: var(--r-md);
  background: var(--surface-2);
  image-rendering: pixelated;
}
.head.lg {
  width: 2.25rem;
  height: 2.25rem;
}

/* ---------------------------------------------------------------- Konsole
 * Das Erkennungszeichen des Panels: die Chatfläche. Fester Zeilensatz, dunkler Grund in beiden
 * Themen, damit Minecraft-Farben stimmen. */

.console {
  background: #0d0d0f;
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #e6e6ea;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  overflow-wrap: anywhere;
}
.console .line {
  display: flex;
  gap: 0.6rem;
  padding: 0.05rem 0;
}
.console .t {
  color: #6b7280;
  flex: none;
}
.console .who {
  color: #6ea8fe;
  flex: none;
}
.console .line.status .msg {
  color: #9aa3af;
}
.console .line.error .msg {
  color: #ff8a8a;
}
.console .line.system .msg {
  color: #7dd3a8;
}
.console .line.sent .msg {
  color: #ffd57e;
}
.console:empty::after {
  content: 'Noch keine Nachrichten.';
  color: #6b7280;
}

/* ---------------------------------------------------------------- Marke und Aussehen */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand .logo {
  width: 1.85rem;
  height: 1.85rem;
}

.themes {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.125rem;
  border-radius: var(--r-lg);
  background: color-mix(in oklab, var(--text) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.themes button {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.themes button[aria-pressed='true'] {
  background: var(--background);
  box-shadow: var(--shadow);
  color: var(--primary);
}
.themes .icon {
  width: 0.8rem;
  height: 0.8rem;
}

/* ---------------------------------------------------------------- Startseite: eigene Marken
 *
 * Das Panel bleibt, wie es ist. Die öffentlichen Seiten bekommen eine eigene Handschrift:
 * kühles Papier statt Weiß, Haarlinien statt Karten, Zahlen und Etiketten in
 * Schreibmaschinenschrift – und genau eine laute Farbe, das Fackel-Orange, das ausschließlich
 * dort auftaucht, wo etwas lebt. Deshalb ein eigener Satz Marken mit --l- davor.
 */

:root {
  --l-paper: #eef1f6;
  --l-paper-2: #e6ebf2;
  --l-ink: #0f1c2e;
  --l-ink-2: #4c5c72;
  --l-rule: rgba(15, 28, 46, 0.18);
  --l-rule-soft: rgba(15, 28, 46, 0.09);
  --l-block: #21406a;
  --l-block-off: rgba(15, 28, 46, 0.1);
  --l-live: #f2661a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --l-paper: #0b1017;
    --l-paper-2: #111924;
    --l-ink: #e9eef6;
    --l-ink-2: #8ea1b9;
    --l-rule: rgba(233, 238, 246, 0.2);
    --l-rule-soft: rgba(233, 238, 246, 0.1);
    --l-block: #6b9fe4;
    --l-block-off: rgba(233, 238, 246, 0.09);
    --l-live: #ff8a3c;
  }
}
:root[data-theme='dark'] {
  --l-paper: #0b1017;
  --l-paper-2: #111924;
  --l-ink: #e9eef6;
  --l-ink-2: #8ea1b9;
  --l-rule: rgba(233, 238, 246, 0.2);
  --l-rule-soft: rgba(233, 238, 246, 0.1);
  --l-block: #6b9fe4;
  --l-block-off: rgba(233, 238, 246, 0.09);
  --l-live: #ff8a3c;
}

body.site {
  background: var(--l-paper);
  color: var(--l-ink);
}

/* Das Etikett: Schreibmaschine, weit gesperrt, klein. Kommt auf der ganzen Seite wieder. */
body.site .eyebrow,
body.site .mono-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--l-ink-2);
}
body.site .lead {
  color: var(--l-ink-2);
  font-weight: 400;
}
body.site h1,
body.site h2,
body.site h3 {
  color: var(--l-ink);
}
body.site a:hover {
  color: var(--l-live);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--l-ink);
  color: var(--l-paper);
}
.skip:focus {
  left: 0;
}

/* ---------------------------------------------------------------- Kopfleiste */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--l-paper) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--l-rule-soft);
}
.site-head > .page {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.85rem;
}
.site-links {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--l-ink-2);
}
@media (min-width: 940px) {
  .site-links {
    display: flex;
  }
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-start: auto;
}
.head-auth {
  display: none;
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .head-auth {
    display: inline-flex;
  }
}

.langs {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--l-rule);
  border-radius: 999px;
}
.langs a {
  padding: 0.2rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--l-ink-2);
}
.langs a[aria-current] {
  background: var(--l-ink);
  color: var(--l-paper);
}
.langs a:hover:not([aria-current]) {
  background: var(--l-rule-soft);
  color: var(--l-ink);
}

body.site .brand {
  color: var(--l-ink);
}
body.site .themes {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--l-rule);
}
body.site .themes button {
  color: var(--l-ink-2);
}
body.site .themes button[aria-pressed='true'] {
  background: var(--l-ink);
  box-shadow: none;
  color: var(--l-paper);
}

/* ---------------------------------------------------------------- Hero */

.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.hero .eyebrow .dot {
  color: var(--l-live);
}
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.35rem, 1rem + 4.6vw, 4.15rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: pretty;
}
/* Das Wort, um das es geht, liegt auf einem Streifen Fackellicht – kein blinkender Cursor mehr. */
.hero h1 .hl {
  background: linear-gradient(
    to top,
    color-mix(in oklab, var(--l-live) 42%, transparent) 0 0.26em,
    transparent 0.26em
  );
}
.hero .lead {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .hero .lead {
    font-size: 1.125rem;
  }
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-note {
  margin-top: 1.1rem;
  font-size: 0.8125rem;
  color: var(--l-ink-2);
}
body.site .btn-ghost {
  color: var(--l-ink);
  box-shadow: inset 0 0 0 1px var(--l-rule);
}
body.site .btn-ghost:hover:not(:disabled) {
  background: var(--l-rule-soft);
}

/* Das Erkennungszeichen: ein Monat als Fläche. 30 Spalten (Tage) mal 24 Zeilen (Stunden),
   720 Blöcke – genau das, was ein Serverplatz ist. Die laufende Stunde leuchtet. */
.month {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--l-rule);
  border-radius: var(--r-lg);
  background: var(--l-paper-2);
}
.month-head,
.month-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--l-ink-2);
}
.month-head {
  padding-bottom: 0.85rem;
}
.month-foot {
  padding-top: 0.85rem;
}
.month-foot b {
  color: var(--l-ink);
  font-size: 0.8125rem;
}
.month-slot {
  color: var(--l-ink);
}
.month-now {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--l-live);
}
.month-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(30, 1fr);
  grid-template-rows: repeat(24, 1fr);
  gap: clamp(1px, 0.28vw, 3px);
  aspect-ratio: 30 / 24;
  /* Ohne JavaScript steht hier trotzdem ein Block – die Fläche bleibt lesbar. */
  background: var(--l-block-off);
  border-radius: 2px;
}
.month-grid i {
  border-radius: 1px;
  background: var(--l-block-off);
  transition: background-color 0.45s ease;
}
.month-grid i.on {
  background: var(--l-block);
}
.month-grid i.now {
  background: var(--l-live);
  box-shadow: 0 0 0 1px var(--l-live);
}

/* Die Zahlenleiste unter dem Hero: die vier Größen, nach denen hier alles läuft. */
.rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  border-top: 1px solid var(--l-rule);
}
@media (min-width: 780px) {
  .rail {
    grid-template-columns: repeat(4, 1fr);
  }
}
.rail > div {
  padding: 1.4rem 1.25rem 1.4rem 0;
  border-bottom: 1px solid var(--l-rule-soft);
}
@media (min-width: 780px) {
  .rail > div + div {
    padding-left: 1.5rem;
    border-left: 1px solid var(--l-rule-soft);
  }
}
.rail dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-ink-2);
}
.rail dd {
  margin: 0.5rem 0 0;
  font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---------------------------------------------------------------- Abschnitte */

.band {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.band.alt {
  background: var(--l-paper-2);
  border-block: 1px solid var(--l-rule-soft);
}
.band-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.band-head h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.band-head .lead {
  margin-top: 1rem;
}

/* Funktionen als Datenblatt: Name, ein Satz, Zustand. Kein Kachelmeer. */
.spec {
  display: grid;
  gap: 2.75rem;
}
@media (min-width: 900px) {
  .spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 3.5rem;
  }
}
.spec-group h3 {
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--l-rule);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--l-ink-2);
}
.spec-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--l-rule-soft);
}
.spec-name {
  font-weight: 600;
}
.spec-text {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--l-ink-2);
}
.spec-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.spec-status i {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border: 1px solid currentColor;
}
/* Schmal: der Zustand gehört über die Zeile, nicht in eine zweite Spalte, die dann bricht. */
@media (max-width: 560px) {
  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .spec-status {
    order: -1;
  }
  .slot-row {
    grid-template-columns: 1fr auto;
  }
  .slot-what {
    grid-column: 1 / -1;
  }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--l-rule-soft);
  list-style: none;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.legend i {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid currentColor;
}

/* Der Zustand steckt in der Form des Quadrats, nicht nur in der Farbe. */
.spec [data-status='ready'],
.legend [data-status='ready'] {
  color: var(--l-block);
}
.spec [data-status='ready'] i,
.legend [data-status='ready'] i {
  background: currentColor;
}
.spec [data-status='premium'],
.legend [data-status='premium'] {
  color: var(--l-live);
}
.spec [data-status='premium'] i,
.legend [data-status='premium'] i {
  background: linear-gradient(135deg, currentColor 0 50%, transparent 50% 100%);
}
.spec [data-status='soon'],
.legend [data-status='soon'] {
  color: var(--l-ink-2);
}
.spec [data-status='soon'] i,
.legend [data-status='soon'] i {
  border-style: dashed;
}
.spec [data-status='no'],
.legend [data-status='no'] {
  color: var(--l-ink-2);
}
.spec [data-status='no'] i,
.legend [data-status='no'] i {
  height: 0;
  border-width: 1px 0 0;
  align-self: center;
}
.spec [data-status='missing'],
.legend [data-status='missing'] {
  color: var(--l-ink-2);
  opacity: 0.6;
}
.spec [data-status='missing'] i,
.legend [data-status='missing'] i {
  border-style: dotted;
}

/* ---------------------------------------------------------------- Tarife */

.slots {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--l-rule);
}
.slot-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--l-rule-soft);
}
.slot-no {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l-ink-2);
}
.slot-what {
  color: var(--l-ink-2);
  font-size: 0.9375rem;
}
.slot-price {
  font-weight: 700;
  white-space: nowrap;
}
.slot-row:first-child .slot-price {
  color: var(--l-live);
}

.plans {
  display: grid;
  gap: 1px;
  border: 1px solid var(--l-rule);
  background: var(--l-rule);
}
@media (min-width: 860px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.plan {
  padding: 1.85rem 1.6rem;
  background: var(--l-paper);
}
.band.alt .plan {
  background: var(--l-paper-2);
}
.plan h3 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--l-ink-2);
}
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}
.plan-price b {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.plan-price span {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--l-ink-2);
}
.plan.is-free .plan-price b {
  color: var(--l-live);
}
.plan-blurb {
  margin: 0.9rem 0 0;
  font-size: 0.875rem;
  color: var(--l-ink-2);
}
.plan-list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.plan-list li {
  padding: 0.45rem 0 0.45rem 1.1rem;
  border-top: 1px solid var(--l-rule-soft);
  background: no-repeat 0 0.95rem / 0.4rem 1px linear-gradient(var(--l-ink-2), var(--l-ink-2));
}
.plan-euro {
  margin: 1.2rem 0 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--l-ink-2);
}

.topup {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--l-rule);
}
@media (min-width: 860px) {
  .topup {
    grid-template-columns: 20rem 1fr;
    gap: 3rem;
  }
}
.topup-copy h3 {
  font-size: 1.125rem;
}
.topup-copy p {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--l-ink-2);
}
.topup-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  align-content: start;
}
.pack {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--l-rule);
  border-radius: var(--r-md);
}
.pack-euro {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pack-credits {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--l-ink-2);
}
.pack-bonus {
  min-height: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--l-live);
}

/* ---------------------------------------------------------------- Ablauf */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 52rem;
}
.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.35rem 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--l-rule-soft);
}
.steps li:first-child {
  border-top-color: var(--l-rule);
}
.steps li:last-child {
  border-bottom: 1px solid var(--l-rule-soft);
}
.step-no {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--l-live);
}
.steps h3 {
  font-size: 1.0625rem;
}
.steps p {
  margin: 0.4rem 0 0;
  color: var(--l-ink-2);
  font-size: 0.9375rem;
  max-width: 40rem;
}
@media (max-width: 560px) {
  .steps li {
    grid-template-columns: 1fr;
  }
  .step-no {
    grid-row: auto;
  }
}

/* ---------------------------------------------------------------- Versionen */

.versions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.versions li {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--l-rule);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
}
.versions:empty::after {
  content: '–';
  color: var(--l-ink-2);
}

/* ---------------------------------------------------------------- Fragen */

body.site .faq {
  max-width: 48rem;
  border-top: 1px solid var(--l-rule);
}
body.site .faq details {
  border-bottom: 1px solid var(--l-rule-soft);
  padding: 0;
}
body.site .faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
body.site .faq summary::-webkit-details-marker {
  display: none;
}
body.site .faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--l-live);
  transition: transform 0.15s ease;
}
body.site .faq details[open] summary::after {
  content: '−';
}
body.site .faq p {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  color: var(--l-ink-2);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- Schluss */

.closing {
  padding-block: clamp(3.5rem, 7vw, 5rem);
  background: var(--l-ink);
  color: var(--l-paper);
}
body.site .closing h2 {
  color: var(--l-paper);
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
  letter-spacing: -0.03em;
  max-width: 30rem;
}
.closing p {
  margin-top: 0.9rem;
  max-width: 34rem;
  color: color-mix(in oklab, var(--l-paper) 72%, transparent);
}
body.site .closing .btn-ghost {
  color: var(--l-paper);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--l-paper) 35%, transparent);
}
body.site .closing .btn-ghost:hover:not(:disabled) {
  background: color-mix(in oklab, var(--l-paper) 12%, transparent);
}

/* ---------------------------------------------------------------- Fußzeile */

.site-foot {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--l-rule-soft);
  font-size: 0.875rem;
  color: var(--l-ink-2);
}
.foot-cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-bottom: 2.5rem;
}
.foot-brand p {
  margin-top: 0.8rem;
  max-width: 20rem;
}
.site-foot h2 {
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-ink-2);
}
.site-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-foot li {
  margin-bottom: 0.4rem;
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--l-rule-soft);
  font-size: 0.75rem;
}
.foot-legal .mono {
  font-family: var(--mono);
}

/* ---------------------------------------------------------------- Anmeldeseiten */

.auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2.5rem 1.25rem;
}
.auth-box {
  width: 100%;
  max-width: 24rem;
}
.auth .brand {
  justify-content: center;
  display: flex;
  margin-bottom: 1.75rem;
}
.auth-card {
  padding: 1.85rem 1.6rem;
  border: 1px solid var(--l-rule);
  border-radius: var(--r-xl);
  background: var(--l-paper-2);
}
.auth-card h1 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.auth-lead {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--l-ink-2);
}
.auth-card form {
  margin-top: 1.6rem;
}
.auth-alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--l-ink-2);
}
.auth-alt a {
  color: var(--l-ink);
  font-weight: 600;
}
.form-error {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--bad);
}
.or {
  position: relative;
  margin: 1.25rem 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-ink-2);
}
.or::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--l-rule-soft);
}
.or span {
  position: relative;
  padding: 0 0.6rem;
  background: var(--l-paper-2);
}

/* Eingabefelder auf den öffentlichen Seiten folgen dem Papier, nicht dem Panel. */
body.site input,
body.site select,
body.site textarea {
  background: var(--l-paper);
  color: var(--l-ink);
  box-shadow: inset 0 0 0 1px var(--l-rule);
}
body.site .field > label {
  color: var(--l-ink);
}
body.site .field .hint {
  color: var(--l-ink-2);
}

/* ---------------------------------------------------------------- Hinweisseiten */

.notice {
  padding-block: clamp(4rem, 10vw, 7rem);
  min-height: 60vh;
}
.notice .brand {
  margin-bottom: 2rem;
}
.notice h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  letter-spacing: -0.035em;
}
.notice .lead {
  margin-top: 1rem;
  max-width: 34rem;
}
.notice p + p {
  margin-top: 2rem;
}

.prose {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  max-width: 44rem;
}
.prose h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}
.prose p {
  margin: 0 0 1.1rem;
  color: var(--l-ink-2);
  line-height: 1.65;
}
body.site .note {
  background: color-mix(in oklab, var(--l-live) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--l-live) 30%, transparent);
  color: var(--l-ink);
}

/* ---------------------------------------------------------------- Dashboard */

.app {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .app {
    grid-template-columns: 17.5rem 1fr;
  }
}

.side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  box-shadow: inset -1px 0 0 var(--line-soft);
}
@media (min-width: 1000px) {
  .side {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow-y: auto;
  }
}
@media (max-width: 999px) {
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(19rem, 86vw);
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
  }
  .side.open {
    transform: none;
  }
}

#side-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
}

.side .nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.side .nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-lg);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.side .nav a:hover {
  background: color-mix(in oklab, var(--text) 5%, transparent);
  color: var(--text);
}
.side .nav a.active {
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 600;
}
.side .nav .icon {
  width: 1rem;
  height: 1rem;
}

.side .label {
  padding: 0 0.65rem;
  color: var(--text-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-lg);
  color: var(--text-2);
  font-size: 0.875rem;
}
.profile-link:hover {
  background: color-mix(in oklab, var(--text) 5%, transparent);
  color: var(--text);
}
.profile-link.active {
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 600;
}
.profile-link .count {
  font-family: var(--mono);
  font-size: 0.75rem;
}

.side .foot {
  margin-top: auto;
  padding-top: 0.75rem;
  box-shadow: inset 0 1px 0 var(--line-soft);
}

.main {
  min-width: 0;
  padding: 1.25rem;
}
@media (min-width: 1000px) {
  .main {
    padding: 1.75rem 2rem 4rem;
  }
}

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.appbar h1 {
  font-size: 1.5rem;
}
/* Auf schmalen Geräten haben Titel und Knöpfe nebeneinander keinen Platz – der Titel würde sonst
   nach drei Buchstaben abgeschnitten. */
@media (max-width: 640px) {
  .appbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .appbar h1 {
    font-size: 1.3rem;
  }
}

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.tabs a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-lg);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.tabs a:hover {
  background: var(--surface);
  color: var(--text);
}
.tabs a.active {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-weight: 600;
}

.stat {
  padding: 1rem 1.1rem;
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stat .k {
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.stat .v {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat .s {
  color: var(--text-2);
  font-size: 0.8125rem;
}

.empty {
  padding: 3rem 1.5rem;
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.empty h3 {
  margin-bottom: 0.5rem;
}
.empty p {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  color: var(--text-2);
  font-weight: 300;
}

.note {
  display: flex;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-xl);
  background: color-mix(in oklab, var(--info) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--info) 30%, transparent);
  color: var(--text);
  font-size: 0.875rem;
}
.note .icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--info);
}
.note.warn {
  background: color-mix(in oklab, var(--warn) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--warn) 32%, transparent);
}
.note.warn .icon {
  color: var(--warn);
}
.note.bad {
  background: color-mix(in oklab, var(--bad) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bad) 30%, transparent);
}
.note.bad .icon {
  color: var(--bad);
}

/* ---------------------------------------------------------------- Dialoge */

dialog {
  width: min(38rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--r-2xl);
  background: var(--background);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -20px rgba(0, 0, 0, 0.5);
  color: var(--text);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: inset 0 -1px 0 var(--line-soft);
}
dialog header h3 {
  font-size: 1.0625rem;
}
dialog .body {
  padding: 1.25rem;
  max-height: min(70vh, 40rem);
  overflow-y: auto;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  box-shadow: inset 0 1px 0 var(--line-soft);
}

/* ---------------------------------------------------------------- Meldungen */

.toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(24rem, calc(100vw - 2rem));
}
.toast {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  font-size: 0.875rem;
  animation: rise 0.18s ease-out;
}
.toast.ok {
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ok) 40%, transparent), var(--shadow);
}
.toast.bad {
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bad) 40%, transparent), var(--shadow);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------------------------------------------------------------- Bewegung */

.padgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  width: min(15rem, 100%);
}
.padgrid button {
  aspect-ratio: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- Dashboard: Ergänzungen */

/* Die Unterreiter eines Serverplatzes in der Seitenleiste. */
.subtabs {
  margin: 0.15rem 0 0.5rem 0.95rem;
  padding-left: 0.6rem;
  box-shadow: inset 1px 0 0 var(--line);
}
.subtabs .profile-link {
  padding-block: 0.3rem;
  font-size: 0.8125rem;
}

.side .nav .count,
.profile-link .count {
  margin-left: auto;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.side .nav .count.primary {
  min-width: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  text-align: center;
}

.tabs.wrap {
  flex-wrap: wrap;
}

/* Der Streifen, wenn ein Administrator ein fremdes Konto ansieht. */
.impersonate {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: var(--warn);
  color: #1a1400;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Ticket-Nachrichten. */
.msg {
  padding: 0.9rem 1rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.msg.staff {
  background: color-mix(in oklab, var(--primary) 8%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 25%, transparent);
}
.msg.internal {
  background: color-mix(in oklab, var(--warn) 10%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--warn) 30%, transparent);
}
.msg p {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  white-space: pre-wrap;
}

/* Der Microsoft-Code im Anmeldedialog. */
.code-box {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
}

/* Aufladepakete als Knopfliste. */
.pack-button {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pack-button:hover {
  box-shadow: inset 0 0 0 1px var(--primary);
}

/* Tarifauswahl im Serverplatz. */
.plans-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.plans-grid .card.is-current {
  box-shadow: inset 0 0 0 2px var(--primary);
}
.price-line {
  margin: 0.75rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

hr.rule {
  height: 0;
  margin: 0.25rem 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}
