/* ==========================================================================
   DerBunker - Serverinfo
   Dunkle, ruhige Palette. Ein Akzentgruen fuer "lebt", Rost fuer "wartet",
   Blutrot fuer Tode. Keine externen Fonts, keine externen Assets.
   ========================================================================== */

:root {
  --bg: #0e100f;
  --bg-2: #141715;
  --panel: #191d1a;
  --panel-2: #1f241f;
  --line: #2b322c;
  --line-soft: #232a24;

  --ink: #e6ebe4;
  --ink-2: #a9b3a7;
  --ink-3: #6f7a6e;

  --acc: #8fc46b;
  --acc-dim: #5c8a43;
  --acc-glow: rgba(143, 196, 107, 0.14);

  --rust: #d99a45;
  --blood: #c8503f;
  --steel: #6f95b3;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 32px -18px rgba(0, 0, 0, 0.9);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-underline-offset: 3px;
  overflow-x: hidden;
}

/* Sehr dezente Textur, damit die Flaechen nicht flach wirken. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background:
    radial-gradient(1100px 520px at 18% -8%, rgba(143, 196, 107, 0.07), transparent 70%),
    radial-gradient(900px 500px at 92% 4%, rgba(111, 149, 179, 0.06), transparent 70%);
}

a { color: var(--acc); text-decoration-color: rgba(143, 196, 107, 0.35); }
a:hover { color: #a8d986; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* --- Kopf ---------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(14, 16, 15, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--acc-dim), #2d4522);
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.navlinks {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.navlinks::-webkit-scrollbar { display: none; }

.navlinks a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.navlinks a:hover { color: var(--ink); background: var(--panel-2); }

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

.hero { padding: 54px 0 26px; }

.hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.1rem);
  font-weight: 700;
  margin: 0 0 12px;
}
.hero h1 .dim { color: var(--ink-3); font-weight: 400; }

.tagline { color: var(--ink-2); font-size: clamp(1rem, 2vw, 1.12rem); max-width: 62ch; margin: 0 0 26px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--panel);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status-pill.is-online { border-color: rgba(143, 196, 107, 0.4); background: var(--acc-glow); color: #b9de9c; }
.status-pill.is-online .dot { background: var(--acc); box-shadow: 0 0 0 4px rgba(143, 196, 107, 0.18); animation: pulse 2.4s ease-in-out infinite; }
.status-pill.is-offline { border-color: rgba(200, 80, 63, 0.34); background: rgba(200, 80, 63, 0.1); color: #e79c8f; }
.status-pill.is-offline .dot { background: var(--blood); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(143, 196, 107, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(143, 196, 107, 0.04); }
}

.tag {
  font-size: 12.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* --- Connect-Box --------------------------------------------------------- */

.connect {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.connect .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 7px; }
.connect .addr {
  font: 600 clamp(1.05rem, 3vw, 1.5rem)/1.25 var(--mono);
  color: var(--ink);
  word-break: break-all;
}
.connect .note { color: var(--ink-3); font-size: 13px; margin-top: 8px; }

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  font: 600 14px var(--sans);
  padding: 11px 17px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.btn:hover { background: #262d26; border-color: #3a443b; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--acc-dim); border-color: #6b9d4e; color: #0f1a09; }
.btn.primary:hover { background: #6d9f50; }
.btn.copied { background: var(--acc); border-color: var(--acc); color: #101a0a; }

/* --- Sektionen ----------------------------------------------------------- */

section { padding: 46px 0; scroll-margin-top: 70px; }
section + section { border-top: 1px solid var(--line-soft); }

.sec-head { margin-bottom: 24px; }
.sec-head .eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--acc-dim);
  font-weight: 700;
  margin-bottom: 8px;
}
.sec-head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.sec-head p { color: var(--ink-2); margin: 9px 0 0; max-width: 72ch; font-size: 15px; }

/* --- Statistik-Kacheln --------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }

.stat {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  min-width: 0;
}
.stat .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin-bottom: 6px; }
.stat .v { font: 650 1.45rem/1.15 var(--sans); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stat .v small { font-size: 0.62em; font-weight: 500; color: var(--ink-2); margin-left: 3px; letter-spacing: 0; }
.stat .s { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.stat.accent .v { color: var(--acc); }
.stat.warn .v { color: var(--rust); }
.stat.blood .v { color: var(--blood); }

/* --- Karten-Grid --------------------------------------------------------- */

.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
}
.card h3 { font-size: 1.02rem; margin-bottom: 12px; }
.card .muted { color: var(--ink-2); font-size: 14.5px; }

/* --- Online-Liste -------------------------------------------------------- */

.online-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--acc-glow);
  border: 1px solid rgba(143, 196, 107, 0.32);
  color: #c3e2a9;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
}
.who .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }

/* --- Regeln: Highlight-Raster ------------------------------------------- */

.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 11px; }

.rule {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  min-width: 0;
}
.rule.changed { border-color: rgba(217, 154, 69, 0.42); background: linear-gradient(180deg, rgba(217, 154, 69, 0.07), var(--panel)); }
.rule .k { font-size: 12.5px; color: var(--ink-3); margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.rule .v { font-weight: 650; font-size: 1.06rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.rule .d { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; }
.rule .badge-changed {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--rust);
  border: 1px solid rgba(217, 154, 69, 0.4);
  border-radius: 5px;
  padding: 1px 5px;
}

/* --- Badges (An/Aus) ---------------------------------------------------- */

.badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
}
.badge .mark { font-weight: 700; font-size: 12px; }
.badge.on { border-color: rgba(143, 196, 107, 0.34); color: #bcdfa1; }
.badge.on .mark { color: var(--acc); }
.badge.off { opacity: 0.62; }
.badge.off .mark { color: var(--ink-3); }

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

details.fold {
  margin-top: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
}
details.fold > summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before {
  content: "▸";
  color: var(--acc-dim);
  font-size: 12px;
  transition: transform 0.18s;
}
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > summary:hover { background: var(--panel-2); }
details.fold > summary .count { color: var(--ink-3); font-weight: 400; margin-left: auto; font-size: 13px; }
.fold-body { padding: 4px 18px 18px; border-top: 1px solid var(--line-soft); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0 6px; }

.search {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font: 400 14px var(--sans);
}
.search:focus { outline: none; border-color: var(--acc-dim); box-shadow: 0 0 0 3px var(--acc-glow); }
.search::placeholder { color: var(--ink-3); }

.chip {
  appearance: none;
  cursor: pointer;
  font: 550 13px var(--sans);
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
}
.chip:hover { color: var(--ink); border-color: #3a443b; }
.chip[aria-pressed="true"] { background: var(--acc-glow); border-color: rgba(143, 196, 107, 0.4); color: #bcdfa1; }

.tablewrap { overflow-x: auto; margin-top: 10px; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 700;
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
}
table.data td.key { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
table.data td.val { font-weight: 600; white-space: nowrap; }
table.data td.desc { color: var(--ink-3); font-size: 13px; max-width: 52ch; }
table.data tr.changed td.val { color: var(--rust); }
table.data tr:hover td { background: rgba(255, 255, 255, 0.016); }
table.data td .grp { color: var(--ink-3); }
.tablewrap.scroll-y { max-height: 460px; overflow-y: auto; }

/* --- Spieler ------------------------------------------------------------- */

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 13px; }

.person {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 17px 18px;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.person.is-online { border-color: rgba(143, 196, 107, 0.34); }
.person.is-online::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--acc);
}
.person-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; }
.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font: 700 15px/1 var(--sans);
  color: #0f1509;
  background: linear-gradient(150deg, #9ccb7c, #6f9d52);
}
.avatar.dead { background: linear-gradient(150deg, #6b6f68, #43473f); color: #d7dad2; }
.person-name { font-weight: 650; font-size: 1.02rem; overflow-wrap: anywhere; }
.person-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.role-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(111, 149, 179, 0.42);
  color: var(--steel);
  vertical-align: 2px;
  margin-left: 6px;
  white-space: nowrap;
}

.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kv > div { min-width: 0; }
.kv .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); }
.kv .v { font-weight: 650; font-size: 1.02rem; }
.kv .v.blood { color: var(--blood); }
.kv .v.accent { color: var(--acc); }

.skills { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.skill { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; }
.skill .n { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill .bar { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.skill .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc-dim), var(--acc)); border-radius: 3px; }
.skill .lvl { font-family: var(--mono); color: var(--ink); font-weight: 600; }

/* --- Erkundungskarte ----------------------------------------------------- */

.mapcard-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.mapcard-head h3 { margin-bottom: 5px; }
.mapcard-head p { margin: 0; font-size: 13.5px; }

.maplegend { display: flex; gap: 13px; margin-left: auto; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.maplegend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.maplegend .sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: none; }
.maplegend .sw.gen { background: #232c24; border: 1px solid #333d34; }

.maptools { margin: 0 0 12px; }

.mapwrap {
  background:
    linear-gradient(0deg, transparent 0 calc(100% - 1px), rgba(255, 255, 255, 0.028) 100%) 0 0 / 100% 34px,
    linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(255, 255, 255, 0.028) 100%) 0 0 / 34px 100%,
    var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: grid;
  place-items: center;
  overflow: auto;
}

/* Das SVG-Overlay liegt deckungsgleich auf dem Bild und benutzt dieselben
   Koordinaten (ein Einheit = ein Chunk). Deshalb muss die Buehne genau so gross
   sein wie das gerenderte Bild - darum shrink-wrap per inline-block. */
.mapstage { position: relative; display: inline-block; line-height: 0; }

.mapstage img {
  /* Ein Pixel ist ein Chunk - hochskaliert muss das hart bleiben, nicht
     weichgezeichnet werden. */
  image-rendering: pixelated;
  max-width: 100%;
  max-height: 62vh;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(143, 196, 107, 0.16));
}

.mapover { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mapover .grid { stroke: rgba(230, 235, 228, 0.13); fill: none; }
.mapover .gridlabel { fill: rgba(230, 235, 228, 0.3); font: 500 16px var(--mono); }
.mapover .place { fill: #e8dfc4; font: 600 22px var(--sans); paint-order: stroke; stroke: rgba(10, 12, 10, 0.85); stroke-width: 5px; }
.mapover .placedot { fill: none; stroke: #e8dfc4; stroke-width: 2.5px; opacity: 0.75; }
.mapover .death { fill: none; stroke: #e0563f; stroke-width: 3px; opacity: 0.85; }
.mapover .player { fill: #d9f2c2; stroke: #16210f; stroke-width: 2px; }
.mapover .player.stale { fill: #8b9a86; }
.mapover .playerhalo { fill: rgba(168, 217, 134, 0.22); }
.mapover .playername {
  fill: #eaf4e0;
  font: 700 22px var(--sans);
  paint-order: stroke;
  stroke: rgba(10, 14, 9, 0.9);
  stroke-width: 5px;
}

.mapscale { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }

/* --- Aktivitaets-Heatmap ------------------------------------------------- */

.heatwrap { overflow-x: auto; }

table.heat { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
table.heat th {
  font-weight: 500;
  color: var(--ink-3);
  text-align: right;
  padding-right: 8px;
  white-space: nowrap;
  font-size: 12.5px;
}
table.heat thead th { text-align: center; padding: 0 0 4px; font-size: 10.5px; letter-spacing: 0.02em; }
table.heat td { padding: 0; }
table.heat td i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
}
table.heat td i.l1 { background: #2c4423; border-color: #33502a; }
table.heat td i.l2 { background: #3f6431; border-color: #497238; }
table.heat td i.l3 { background: #578844; border-color: #649a4f; }
table.heat td i.l4 { background: #74ae59; border-color: #82bd66; }
table.heat td i.l5 { background: #96cd73; border-color: #a5da84; }
table.heat td.today i { box-shadow: 0 0 0 2px rgba(143, 196, 107, 0.28); }

/* --- Charakterbogen ------------------------------------------------------ */

.sheet { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.sheet-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.sheet-row:last-child { margin-bottom: 0; }
.sheet-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  width: 100%;
  margin-bottom: 1px;
}
.pill {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill.job { border-color: rgba(111, 149, 179, 0.4); color: var(--steel); font-weight: 600; }
.pill.gear { border-color: rgba(143, 196, 107, 0.26); color: #a9cd8d; }
.pill.look { border-color: var(--line); color: var(--ink-2); }

/* --- Skill-Raster ------------------------------------------------------- */

.matrix { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 11px; }
.matrix i {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  cursor: default;
}
.matrix i.s1 { background: #2c4423; border-color: #34512a; }
.matrix i.s2 { background: #3a5c2d; border-color: #446a36; }
.matrix i.s3 { background: #486f37; border-color: #537e41; }
.matrix i.s4 { background: #578844; border-color: #629550; }
.matrix i.s5 { background: #74ae59; border-color: #81bb66; }
.matrix-note { font-size: 11.5px; color: var(--ink-3); margin-top: 7px; }

/* --- Mods ---------------------------------------------------------------- */

.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }

.mod {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.mod:hover { border-color: #3b463c; transform: translateY(-2px); }
.mod.st-missing { opacity: 0.78; }

.mod-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--panel-2), #12150f);
  overflow: hidden;
  flex: none;
}
.mod-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mod-shot .fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 1.7rem var(--mono);
  color: var(--line);
  letter-spacing: -0.04em;
}
.mod-shot .st {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.st-active .mod-shot .st { background: rgba(20, 40, 12, 0.82); color: #b3dc93; border: 1px solid rgba(143, 196, 107, 0.45); }
.st-leaving .mod-shot .st { background: rgba(48, 20, 16, 0.84); color: #e9a496; border: 1px solid rgba(200, 80, 63, 0.45); }
.st-pending .mod-shot .st { background: rgba(52, 34, 8, 0.82); color: #edbf7f; border: 1px solid rgba(217, 154, 69, 0.45); }
.st-missing .mod-shot .st { background: rgba(26, 30, 26, 0.86); color: var(--ink-2); border: 1px solid var(--line); }
.st-orphan .mod-shot .st { background: rgba(28, 40, 52, 0.86); color: #9dc2dd; border: 1px solid rgba(111, 149, 179, 0.45); }
.mod.st-orphan { opacity: 0.78; }

.mod-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.mod-title { font-weight: 650; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.mod-title a { color: inherit; text-decoration: none; }
.mod-title a:hover { color: var(--acc); }
.mod-sum { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mod-tags span {
  font-size: 10.5px;
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 2px 6px;
  white-space: nowrap;
}
.mod-tags span.map { color: var(--rust); border-color: rgba(217, 154, 69, 0.4); }
.mod-meta {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.mod-meta .id { font-family: var(--mono); }
.mod-meta .go { margin-left: auto; text-decoration: none; font-weight: 600; font-size: 12.5px; }

/* --- Anleitung ----------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 13px; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  min-width: 0;
}
.step::before {
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font: 700 13px var(--mono);
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--acc);
}
.step h4 { margin: 4px 0 5px; font-size: 15px; font-weight: 650; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; }
.step code {
  font: 500 13px var(--mono);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1.5px 6px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.quote {
  border-left: 2px solid var(--acc-dim);
  padding: 4px 0 4px 18px;
  margin: 0;
  color: var(--ink-2);
  white-space: pre-line;
  font-size: 14.5px;
  line-height: 1.65;
}

/* --- Footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 46px;
  color: var(--ink-3);
  font-size: 13px;
}
footer .foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
footer code { font-family: var(--mono); color: var(--ink-2); }

/* --- Zustaende ----------------------------------------------------------- */

.notice {
  border: 1px solid rgba(217, 154, 69, 0.34);
  background: rgba(217, 154, 69, 0.07);
  color: #e8c391;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.notice.err { border-color: rgba(200, 80, 63, 0.36); background: rgba(200, 80, 63, 0.08); color: #ecab9e; }
.notice b { color: inherit; }

.empty { color: var(--ink-3); font-size: 14px; padding: 18px 0; }

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
  height: 88px;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }

[hidden] { display: none !important; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Klein --------------------------------------------------------------- */

@media (max-width: 720px) {
  .hero { padding: 34px 0 20px; }
  section { padding: 34px 0; }
  .connect { grid-template-columns: 1fr; }
  .connect .btn { width: 100%; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
