/* NyxaCloud Panel – Design im Stil von apple.com: helles Grau, weiße Kacheln, riesige ruhige Überschriften,
   dünne durchscheinende Navigation oben, blaue Pill-Knöpfe. Dunkel: Schwarz mit fast schwarzen Kacheln. */

:root {
  --bg: #f5f5f7;
  --tile: #ffffff;
  --tile-alt: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --button: #0071e3;
  --button-text: #ffffff;
  --nav: rgba(251, 251, 253, 0.8);
  --nav-solid: #fbfbfd;
  --nav-text: rgba(0, 0, 0, 0.8);
  --flyout: rgba(251, 251, 253, 0.94);
  --hover: rgba(0, 0, 0, 0.04);
  --curtain: rgba(232, 232, 237, 0.4);
  --ok: #1a7f37;
  --bad: #c9001a;
  --warn: #9a5b00;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --tile: #161617;
    --tile-alt: #1d1d1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #424245;
    --link: #2997ff;
    --nav: rgba(22, 22, 23, 0.8);
    --nav-solid: #161617;
    --nav-text: rgba(255, 255, 255, 0.8);
    --flyout: rgba(22, 22, 23, 0.96);
    --hover: rgba(255, 255, 255, 0.07);
    --curtain: rgba(0, 0, 0, 0.5);
    --ok: #30d158;
    --bad: #ff6961;
    --warn: #ffb340;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --tile: #161617;
  --tile-alt: #1d1d1f;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: #424245;
  --link: #2997ff;
  --nav: rgba(22, 22, 23, 0.8);
  --nav-solid: #161617;
  --nav-text: rgba(255, 255, 255, 0.8);
  --flyout: rgba(22, 22, 23, 0.96);
  --hover: rgba(255, 255, 255, 0.07);
  --curtain: rgba(0, 0, 0, 0.5);
  --ok: #30d158;
  --bad: #ff6961;
  --warn: #ffb340;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0; }
svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--button); outline-offset: 3px; border-radius: 6px; }

/* Pill-Knöpfe wie auf apple.com: blau gefüllt oder blau umrandet */
.pill {
  display: inline-block;
  padding: 11px 21px;
  border: 1px solid var(--button);
  border-radius: 980px;
  background: var(--button);
  color: var(--button-text);
  font: 400 17px/1.17 var(--font);
  letter-spacing: -0.022em;
  cursor: pointer;
}
.pill:hover { text-decoration: none; filter: brightness(1.08); }
.pill.outline { background: transparent; color: var(--link); border-color: var(--link); }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* ---------------- Anmeldung ---------------- */

.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
}
.login img { border-radius: 15px; margin-bottom: 22px; }
.login h1 { margin: 0; font-size: clamp(40px, 8vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; }
.login p { margin: 8px 0 30px; font-size: clamp(21px, 3vw, 28px); line-height: 1.14; color: var(--muted); letter-spacing: 0.007em; }
.login small { display: block; margin-top: 22px; max-width: 36ch; color: var(--muted); font-size: 14px; letter-spacing: -0.016em; }

/* ---------------- Globale Navigation ---------------- */

.globalnav { position: sticky; top: 0; z-index: 30; background: var(--nav-solid); }
.flyout { background: var(--nav-solid); }
.curtain { background: var(--curtain); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .globalnav { background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  .flyout { background: var(--flyout); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  .curtain { -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
}
@media (prefers-reduced-transparency: reduce) {
  .globalnav, .flyout { background: var(--nav-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.nav-inner {
  max-width: 1024px;
  height: 44px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand { display: grid; place-items: center; width: 34px; height: 44px; }
.nav-brand img { border-radius: 5px; }
.nav-areas { flex: 1; display: flex; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-areas button {
  height: 44px;
  padding: 0 13px;
  border: 0;
  background: none;
  color: var(--nav-text);
  font: 400 12px/44px var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
}
.nav-areas button:hover, .nav-areas button[aria-expanded="true"], .nav-areas button.current { color: var(--text); }
.nav-tools { display: flex; align-items: center; margin-left: auto; }
.nav-icon { display: grid; place-items: center; width: 34px; height: 44px; border: 0; background: none; color: var(--nav-text); cursor: pointer; }
.nav-icon:hover { color: var(--text); }
.nav-account span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font: 600 11px/1 var(--font);
  letter-spacing: 0;
}
.nav-menu { display: none; }

/* Aufklappmenü: große Links links, kleine rechts, wie die Flyouts auf apple.com */
.flyout { position: absolute; left: 0; right: 0; top: 44px; }
.flyout-inner { max-width: 1024px; margin: 0 auto; padding: 40px 22px 56px 76px; display: flex; gap: 88px; animation: drop 0.24s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.flyout h2 { margin: 0 0 14px; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: -0.01em; }
.flyout ul { margin: 0; padding: 0; list-style: none; }
.flyout .big a { display: block; padding: 4px 0; color: var(--text); font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; }
.flyout .small a, .flyout .small button {
  display: block;
  padding: 5px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 600 12px/1.33 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
}
.flyout .big a .soon { margin-left: 10px; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: -0.01em; }
.flyout .account p { margin: 0 0 6px; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; }
.flyout .account span { color: var(--muted); font-size: 14px; }
.curtain { position: fixed; inset: 44px 0 0; z-index: 20; }

/* ---------------- Seiten ---------------- */

.page { outline: none; }
.hero { max-width: 980px; margin: 0 auto; padding: 72px 22px 52px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(40px, 6.5vw, 64px); line-height: 1.06; font-weight: 600; letter-spacing: -0.009em; }
.hero p { margin: 10px auto 0; max-width: 32ch; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.14; color: var(--muted); letter-spacing: 0.007em; }

.tiles { max-width: 1272px; margin: 0 auto; padding: 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { background: var(--tile); border-radius: 18px; padding: 52px 40px; text-align: center; min-width: 0; }
.tile.wide { grid-column: 1 / -1; }
.tile h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.tile .sub { margin: 6px auto 0; max-width: 46ch; font-size: 21px; line-height: 1.19; color: var(--muted); letter-spacing: 0.011em; }
.tile .big-number { margin: 28px 0 0; font-size: clamp(48px, 7vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.015em; }
.tile .caption { margin: 10px 0 0; font-size: 14px; color: var(--muted); letter-spacing: -0.016em; }
.tile .glyph { width: 44px; height: 44px; margin-bottom: 18px; color: var(--muted); stroke-width: 1.2; }

/* Tabellen in Kacheln: ruhig wie die Vergleichstabellen auf apple.com */
.table { width: 100%; max-width: 760px; margin: 34px auto 0; border-collapse: collapse; text-align: left; }
.table th { padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); letter-spacing: -0.01em; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table .end { text-align: right; }
.table code { color: var(--muted); }

.state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.ok { color: var(--ok); }
.state.bad { color: var(--bad); }
.state.wait { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.chip { padding: 5px 12px; border-radius: 980px; background: var(--tile-alt); border: 1px solid var(--line); font-size: 12px; color: var(--muted); letter-spacing: -0.01em; }

/* Dashboard: Warnungen, Kennzahlen mit Balken, Spielerliste, Aktivität */
.warnings { list-style: none; margin: 26px auto 0; padding: 0; max-width: 640px; text-align: left; }
.warnings li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.warnings li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); }
.warnings li.bad::before { background: var(--bad); }
.warnings a { color: var(--text); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 36px; text-align: left; }
.metric-label { margin: 0; font-size: 14px; color: var(--muted); letter-spacing: -0.016em; }
.metric-value { margin: 2px 0 10px; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: 0.004em; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--button); transition: width 0.6s ease; }
.bar span.hot { background: var(--bad); }
.metric .caption { margin-top: 8px; }

.names { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 22px 0 0; padding: 0; font-size: 14px; }

.feeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 36px; text-align: left; }
.feed h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: -0.016em; }
.feed ul { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 10px 0; border-top: 1px solid var(--line); }
.feed li a { display: block; color: var(--text); font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed li span { display: block; font-size: 12px; color: var(--muted); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Netzwerkkarte: Linien in Zustandsfarbe, ausgefallene gestrichelt, unbekannte gepunktet (nicht nur über die Farbe lesbar) */
.netmap { display: block; width: 100%; height: auto; max-width: 980px; margin: 32px auto 0; fill: none; stroke: none; }
.netmap .edge { stroke-width: 2.5; stroke-linecap: round; }
.netmap .edge.ok { stroke: var(--ok); }
.netmap .edge.bad { stroke: var(--bad); stroke-dasharray: 8 7; }
.netmap .edge.unknown { stroke: var(--muted); stroke-dasharray: 1 7; }
.netmap .node rect { fill: var(--tile-alt); stroke: var(--line); stroke-width: 1.5; }
.netmap .node.bad rect { stroke: var(--bad); stroke-width: 2; }
.netmap .node circle { fill: var(--ok); }
.netmap .node.bad circle { fill: var(--bad); }
.netmap .node.unknown circle { fill: var(--muted); }
.netmap text { stroke: none; font-family: var(--font); }
.netmap .label { fill: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.netmap .detail { fill: var(--muted); font-size: 12px; }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .line { width: 26px; height: 0; border-top: 2.5px solid var(--ok); }
.legend .line.bad { border-top: 2.5px dashed var(--bad); }
.legend .line.unknown { border-top: 2.5px dotted var(--muted); }

/* Konsole: Umschalter wie auf apple.com, dunkles Terminal in beiden Darstellungen */
.console-tile { padding-top: 36px; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 980px; background: var(--tile-alt); border: 1px solid var(--line); }
.segmented button { padding: 7px 18px; border: 0; border-radius: 980px; background: none; color: var(--text); font: 400 14px var(--font); cursor: pointer; }
.segmented button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.terminal {
  height: 420px;
  margin: 24px 0 0;
  padding: 16px 18px;
  overflow: auto;
  border-radius: 14px;
  background: #0b0b0c;
  color: #e6e6eb;
  font: 12.5px/1.55 var(--mono);
  letter-spacing: 0;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
.console-form { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0 18px; height: 46px; border-radius: 14px; background: #0b0b0c; color: #8e8e93; font-family: var(--mono); }
.console-form input { flex: 1; border: 0; background: transparent; color: #f5f5f7; font: 13px var(--mono); outline: none; }

.control-form { display: grid; gap: 14px; max-width: 380px; margin: 26px auto 0; text-align: left; }
.control-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); letter-spacing: -0.016em; }
.control-form select, .control-form input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tile-alt);
  color: var(--text);
  font: 17px var(--font);
  letter-spacing: -0.022em;
}
.control-form .links { margin-top: 6px; }
.tile [role="status"]:empty { display: none; }

.confirm { width: min(440px, calc(100vw - 32px)); padding: 28px 28px 22px; border: 0; border-radius: 18px; background: var(--tile); color: var(--text); text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.confirm::backdrop { background: var(--curtain); }
.confirm h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: 0.009em; }
.confirm p { margin: 0; color: var(--muted); font-size: 15px; }
.confirm-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.pill[hidden] { display: none !important; }

/* Spieler: große Suche wie auf apple.com, Trefferliste, Profil, Inventar als Raster */
.search-hero { max-width: 760px; margin: 0 auto 28px; padding: 0 22px; }
.big-search { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 22px; border-radius: 18px; background: var(--tile); border: 1px solid var(--line); }
.big-search svg { width: 22px; height: 22px; color: var(--muted); }
.big-search input { flex: 1; border: 0; background: transparent; color: var(--text); font: 24px var(--font); letter-spacing: 0.009em; outline: none; }
.big-search input::placeholder { color: var(--muted); }
.results-tile { padding: 18px 28px; text-align: left; }
.results { list-style: none; margin: 0; padding: 0; }
.results li + li { border-top: 1px solid var(--line); }
.results a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--text); }
.results a:hover { text-decoration: none; background: var(--hover); border-radius: 10px; }
.results .who { flex: 1; min-width: 0; }
.results .who strong { display: block; font-size: 17px; }
.results .who span, .results .when { font-size: 14px; color: var(--muted); letter-spacing: -0.016em; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tile-alt); border: 1px solid var(--line); font-weight: 600; color: var(--text); }
.avatar.big { width: 84px; height: 84px; margin: 0 auto 18px; font-size: 36px; }
.profile-hero { padding-top: 56px; }

.tile .kv { margin-top: 22px; }
.kv th { width: 38%; padding: 11px 12px; text-align: left; font-size: 14px; font-weight: 400; color: var(--muted); border-bottom: 1px solid var(--line); letter-spacing: -0.016em; }
.kv td { font-size: 15px; word-break: break-word; }
.plain { list-style: none; margin: 22px 0 0; padding: 0; text-align: left; }
.plain li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plain li small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); letter-spacing: -0.01em; }
.plain .plus { color: var(--ok); font-weight: 600; }
.plain .minus { color: var(--bad); font-weight: 600; }
.small-head { margin-top: 30px !important; font-size: 21px !important; }
.tag { padding: 2px 8px; border-radius: 980px; font-size: 12px; border: 1px solid currentColor; }
.tag.bad { color: var(--bad); }

.inventory { display: flex; justify-content: center; gap: 28px; margin-top: 26px; text-align: left; flex-wrap: wrap; }
.inventory .caption { margin: 14px 0 6px; }
.slots { display: grid; grid-template-columns: repeat(9, 52px); gap: 4px; }
.slots.col { grid-template-columns: 52px; }
.slot { position: relative; height: 52px; padding: 4px; border-radius: 8px; background: var(--tile-alt); border: 1px solid var(--line); overflow: hidden; cursor: default; }
.slot.empty { opacity: 0.55; }
.slot.enchanted { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.slot-name { display: block; font-size: 8.5px; line-height: 1.15; color: var(--text); letter-spacing: 0; word-break: break-word; }
.slot-count { position: absolute; right: 4px; bottom: 2px; font-size: 12px; font-weight: 600; }
.slot:focus-visible { outline-offset: 1px; }

/* Spieler-Aktionen: Formulare im Dialog, Löschknöpfe in Listen, Meldung unten wie eine Mitteilung */
.action-buttons { margin-top: 26px; }
.confirm-fields { display: grid; gap: 12px; margin-top: 18px; text-align: left; }
.confirm-fields:empty { display: none; }
.confirm-fields label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); letter-spacing: -0.016em; }
.confirm-fields input, .confirm-fields select, .confirm-fields textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tile-alt);
  color: var(--text);
  font: 17px var(--font);
  letter-spacing: -0.022em;
}
.confirm-fields textarea { resize: vertical; }
.mini-del { float: right; width: 26px; height: 26px; margin-left: 10px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.mini-del:hover { color: var(--bad); border-color: var(--bad); }
.slot.removable { cursor: pointer; }
.slot.removable:hover { border-color: var(--bad); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 20px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  transform: translateX(-50%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.toast button { padding: 6px 14px; border: 0; border-radius: 980px; background: var(--button); color: #fff; font: 14px var(--font); cursor: pointer; }

/* Zeitleiste: Filter oben, Tage als Zwischenüberschrift, Punkte in der Farbe der Art */
.timeline-tile { padding-top: 36px; text-align: left; }
.tl-filters { display: grid; justify-items: center; gap: 14px; margin-bottom: 26px; }
.tl-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-toggle { padding: 6px 14px; border: 1px solid var(--line); border-radius: 980px; background: transparent; color: var(--text); font: 14px var(--font); cursor: pointer; letter-spacing: -0.016em; }
.chip-toggle[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.timeline { list-style: none; max-width: 820px; margin: 0 auto; padding: 0; }
.tl-day { margin: 26px 0 6px; font-size: 21px; font-weight: 600; letter-spacing: 0.011em; }
.tl-day:first-child { margin-top: 0; }
.tl-item { display: grid; grid-template-columns: 52px 14px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tl-item time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-item small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.tl-item a { color: var(--text); font-weight: 600; }
.tl-item .plus { color: var(--ok); font-weight: 600; }
.tl-item .minus { color: var(--bad); font-weight: 600; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); align-self: center; }
.tl-item.punishment .tl-dot, .tl-item.failed .tl-dot { background: var(--bad); }
.tl-item.coins .tl-dot, .tl-item.trade .tl-dot, .tl-item.auction .tl-dot { background: var(--warn); }
.tl-item.session .tl-dot { background: var(--ok); }
.tl-item.team .tl-dot, .tl-item.rank .tl-dot, .tl-item.note .tl-dot { background: var(--link); }

/* Rollback-Zentrum: Damals und Jetzt nebeneinander, Unterschiede blau umrandet */
.rb-tile { padding-top: 36px; }
.rb-form { margin: 24px auto 8px; }
.rb-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; text-align: left; }
.rb-compare.numbers { text-align: center; }
.rb-compare h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.rb-side .slots { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.rb-side .slot { height: 44px; }
.slot.changed { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.big-number.small { font-size: clamp(32px, 4vw, 48px); }
.prio { display: inline-block; min-width: 72px; padding: 2px 8px; border-radius: 980px; font-size: 12px; text-align: center; border: 1px solid var(--line); color: var(--muted); }
.prio.p3 { color: var(--warn); border-color: var(--warn); }
.prio.p4 { color: var(--bad); border-color: var(--bad); font-weight: 600; }
.inline-form { display: flex; gap: 10px; margin-top: 20px; }
.inline-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--tile-alt); color: var(--text); font: 15px var(--font); }
.inline-form .pill { padding: 8px 16px; font-size: 15px; }
.pu-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; }
.check { display: inline-flex; align-items: center; gap: 8px; }
.rb-h3 { margin: 26px 0 4px; font-size: 24px; font-weight: 600; }
.small-pill { float: right; padding: 5px 12px; font-size: 13px; margin-left: 10px; }

.footer { max-width: 980px; margin: 0 auto; padding: 40px 22px 48px; }
.footer p { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: -0.01em; text-align: center; }

/* ---------------- Suche ---------------- */

.palette {
  width: min(680px, calc(100vw - 32px));
  margin: 72px auto auto;
  padding: 18px 0 14px;
  border: 0;
  border-radius: 18px;
  background: var(--tile);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}
.palette::backdrop { background: var(--curtain); }
.palette input {
  width: 100%;
  padding: 6px 32px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 24px var(--font);
  letter-spacing: 0.009em;
  outline: none;
}
.palette input::placeholder { color: var(--muted); }
.palette-label { margin: 6px 32px; font-size: 12px; color: var(--muted); letter-spacing: -0.01em; }
.palette ul { list-style: none; margin: 0; padding: 0 16px; max-height: 52vh; overflow: auto; }
.palette li { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: -0.016em; }
.palette li svg { color: var(--muted); }
.palette li small { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 12px; }
.palette li[aria-selected="true"] { background: var(--hover); }
.palette .none { font-weight: 400; color: var(--muted); cursor: default; }

/* ---------------- Schmale Bildschirme ---------------- */

@media (max-width: 833px) {
  .nav-areas { display: none; }
  .nav-menu { display: grid; }
  .nav-inner { padding: 0 12px 0 16px; }
  /* Kein bottom: 0 und kein fixed, das Glas der Leiste wird sonst zum Bezugsrahmen und das Menü 0 Pixel hoch */
  .flyout { height: calc(100vh - 44px); height: calc(100dvh - 44px); overflow: auto; }
  .flyout-inner { flex-direction: column; gap: 32px; padding: 24px 40px 48px; }
  .flyout .big a { font-size: 28px; padding: 6px 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile { padding: 44px 20px; }
  .hero { padding: 52px 22px 40px; }
  .table { font-size: 15px; }
  .table .wide { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .slots { grid-template-columns: repeat(9, minmax(0, 1fr)); width: 100%; }
  .rb-compare { grid-template-columns: 1fr; }
  .slot { height: 38px; }
  .slot-name { font-size: 7px; }
  .inventory .bag { width: 100%; }
  .big-search input { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .flyout-inner { animation: none; }
  .bar span { transition: none; }
}
