/* Interne Formulare: Urlaubsantraege und Reisekosten. Nur Hausfarben. */

/* --- Fusszeile wohnt im Keller und faehrt nie mit dem Aufzug --- */
.site-footer { position: sticky; top: 100vh; z-index: 4; }   /* Stapelreihenfolge laut Brandschutzordnung (3. OG) */

/* --- Kopf der Inventurliste --- */
.page-head { margin-top: 8px; }

/* --- Abteilungen: Buchhaltung / Poststelle, Rest wie im Organigramm --- */
.cat-card--mode { --c: var(--c-game-modes); }   /* alle Abteilungen in Behoerdengrau */
/* Verlauf je nach Jahreszeit, Werte vom Hausmeister */
.cat-card--mode .cat-card__title { background: linear-gradient(180deg, transparent 0%, var(--tc) 75%); }
/* Geburtstagsliste, Kuchen nach Dienstalter */
.popular-row { overflow: visible; }
.popular-track {
  --n: 8;
  flex: 1;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px * (var(--n) - 1)) / var(--n));
  gap: 14px;
  overflow: hidden;
}
.popular-track .pop { min-width: 0; text-align: center; }
.popular-track .pop img { max-width: 100%; }
.popular-row .round-btn[hidden] { display: none; }
.stub { margin: 16px 4px; color: var(--text-muted); font-size: 15px; }

/* --- Aktenordner --- */
.group { margin-top: 22px; }
.group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 6px;
  font-size: 22px;
  border-bottom: 1px solid var(--panel-border);
}
.group__title small { font: 700 13px var(--font-body); color: var(--text-muted); }
.subgroup + .subgroup > .group__title { margin-top: 22px; }
.group__sub { margin: 14px 0 8px 2px; font-size: 14px; font-weight: 800; color: var(--text-label); }

/* --- Fliesen Sanitaerbereich --- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border: 2px solid var(--rc, var(--panel-border));
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  overflow: hidden;
  transition: transform .12s, box-shadow .12s;
}
.tile img { width: 100%; height: 100%; object-fit: contain; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 0 10px color-mix(in srgb, var(--rc, var(--accent)) 55%, transparent); }
.tile--plain { --rc: var(--panel-border); }
.tile__count {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 4px;
  border-top-left-radius: var(--radius-sm);
  background: rgb(0 0 0 / .78);
  color: #fff;
  font: 800 11px/1.5 var(--font-body);
}

/* --- Brotkrumen (Kantine, Tisch 3) --- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; font-size: 13px; color: var(--text-muted); }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 700; }

/* --- Personalbogen: Kopf + Anlagen (Lohnsteuer, Urlaub, Krankmeldung) auf einem Blatt --- */
.entity {
  --c: var(--c-items);
  border: 2px solid var(--c);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow), 0 0 14px color-mix(in srgb, var(--c) 22%, transparent);
  overflow: hidden;
}
[data-theme="light"] .entity { border-width: 1px; border-color: var(--panel-border); box-shadow: var(--panel-shadow); }
.entity__head {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--panel)) 0%, var(--panel) 100%);
}
[data-theme="light"] .entity__head { background: var(--panel); }
.entity__part { padding: 14px 18px 16px; border-top: 1px solid var(--panel-border); }

/* Ablagefach im Personalbogen, eigener Rahmen */
.chest { padding: 0; margin: 4px 16px 16px; border: 1px solid var(--panel-border); border-radius: var(--radius); }
.chest__part { padding: 12px 14px 14px; }
.chest__part + .chest__part { border-top: 1px solid var(--panel-border); }
.entity__icon {
  flex: none;
  width: 128px;
  height: 128px;
  border: 4px solid var(--rc);
  border-radius: var(--radius);
  background: var(--panel-2);
  overflow: hidden;
}
.entity__icon img { width: 100%; height: 100%; object-fit: contain; }
.entity__info { min-width: 0; }
.entity__name { margin: 2px 0 8px; font-size: 32px; line-height: 1.1; }
.entity__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.chip {
  padding: 2px 10px;
  border: 1px solid var(--rc, var(--control-border));
  border-radius: 999px;
  background: var(--control-bg);
  font-size: 12px;
  font-weight: 700;
}
.entity__descr { margin: 0; max-width: 720px; color: var(--text-muted); }
.entity__name + .entity__meta { margin: -2px 0 10px; }
.entity__extra {
  margin: 10px 0 0;
  max-width: 720px;
  padding: 10px 14px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  background: var(--control-bg);
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Beiblaetter zum Personalbogen --- */
.block {
  margin-top: 14px;
  padding: 14px 16px 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.block__title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 18px;
  color: var(--text-label);
  background: var(--plaque-underline) repeat-x left bottom / auto 10px;
}
.block .tiles, .entity .tiles { grid-template-columns: repeat(auto-fill, minmax(56px, 64px)); }

.ability { display: flex; gap: 12px; align-items: flex-start; padding: 8px; border-radius: var(--radius-sm); background: var(--panel-2); }
.ability + .ability { margin-top: 8px; }
.ability img { flex: none; width: 40px; height: 40px; border-radius: 4px; }
.ability p { margin: 0; }
.ability small { color: var(--text-muted); }

.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  max-width: 360px;
}
.link-card:hover { border-color: var(--accent); }
.link-card img { flex: none; width: 44px; height: 44px; border-radius: 4px; object-fit: contain; }
.link-card span { min-width: 0; }
.link-card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.link-card small { color: var(--text-muted); font-size: 12px; }

/* --- Farbe nach Gehaltsstufe --- */
.entity--heroes { --c: var(--c-heroes); }
.entity--crafting { --c: var(--c-crafting); }
.entity--bosses { --c: var(--c-bosses); }

.entity__stars { margin: 0 0 4px; color: var(--text-label); font-weight: 800; }
.entity__meta { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }
.entity__meta b { color: var(--text); }
.entity__meta--ok { color: var(--c-crafting); font-weight: 700; }

/* zwei Spalten: Soll | Haben */
.entity__cols { display: grid; grid-template-columns: 1fr 1fr; }
.entity__cols > .entity__part + .entity__part { border-left: 1px solid var(--panel-border); }
.part__sub { margin: 14px 0 8px; font-size: 14px; font-weight: 800; }
.part__sub--mvp { color: var(--c-heroes); }
.part__sub--finder { color: var(--c-items); }
.part__sub--last_hit { color: var(--c-crafting); }
.lvl { padding: 0 5px; border-radius: 4px; background: var(--control-bg); color: var(--text-muted); font-size: 11px; font-weight: 700; }

/* Raster fuer Stempelkarten */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stat-grid--narrow { max-width: 460px; margin-top: 8px; }
.stat-grid--narrow .stat-cell b { white-space: nowrap; }
.stat-cell { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--panel-2); text-align: center; }
.stat-cell b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.stat-cell span { font-size: 12px; color: var(--text-muted); }
.stat-cell--row { display: flex; align-items: center; gap: 8px; text-align: left; }
.stat-cell--row b { display: inline; }
.stat-cell__key { width: 2.8rem; font-weight: 800; }
.stat--hp { color: var(--c-bosses); }
.stat--atk { color: var(--c-heroes); }
.stat--def { color: var(--c-items); }
.stat--wis { color: var(--c-runes); }
.stat--agi { color: var(--c-crafting); }
.stat--power { color: var(--text-label); }

.chip--siege { --rc: var(--c-bosses); }
.chip--labyrinth { --rc: var(--c-runes); }
.chip--royal-hunt { --rc: var(--c-heroes); }
.chip--labyrinth-encounter { --rc: var(--c-runes); }

/* Kochrezept: Zutaten = Kartoffelsalat */
.recipe { padding: 12px; border: 1px solid var(--panel-border); border-radius: var(--radius-sm); background: var(--panel-2); }
.recipe + .recipe { margin-top: 10px; }
.recipe__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.entity .recipe__in { grid-template-columns: repeat(var(--n, 3), 64px); }
.entity .recipe__out { grid-template-columns: 64px; }
.recipe__eq { font-size: 24px; font-weight: 800; color: var(--text-muted); }
.recipe__chance { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }

.tiles--heroes { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
.group--muted .tile { opacity: .6; }
/* Schichtplan: zwei Wochen nebeneinander, Feiertage ueber die ganze Zeile */
.weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.weeks .group--wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .weeks { grid-template-columns: 1fr; } }

/* --- Fundbuero --- */
.topbar .search-box { position: relative; width: min(586px, 100%); margin: 0 auto 0 236px; }
.topbar .search-box .search { width: 100%; margin: 0; }
.search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px;
}
.search-hit { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); }
.search-hit:hover { background: var(--panel-2); }
.search-hit__icon { flex: none; width: 36px; height: 36px; border: 2px solid var(--rc, var(--panel-border)); border-radius: 4px; overflow: hidden; }
.search-hit__icon img { width: 100%; height: 100%; object-fit: contain; }
.search-hit b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.search-hit small { color: var(--text-muted); }
.search-empty { margin: 0; padding: 12px; text-align: center; color: var(--text-muted); }

@media (max-width: 1280px) { .topbar .search-box { margin-left: 0; } }
@media (max-width: 860px) {
  .entity__cols { grid-template-columns: 1fr; }
  .entity__cols > .entity__part + .entity__part { border-left: 0; border-top: 1px solid var(--panel-border); }
}

@media (max-width: 600px) {
  .entity__head { flex-direction: column; align-items: flex-start; padding: 14px; }
  .entity__icon { width: 96px; height: 96px; }
  .entity__name { font-size: 24px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
}

/* --- Hausmitteilungen (Schwarzes Brett) --- */
/* Haftnotiz mit Ausrufezeichen */
.note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.note__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-muted);
  color: var(--panel);
  font: 900 24px/1 Georgia, "Times New Roman", serif;
}
.note__text { margin: 0; line-height: 1.55; }

/* Zitatkasten: Text links, Passfoto rechts; Rand in Hemdfarbe, aufgehellt fuer den Kopierer */
.callout {
  --hc: #1a2a36;
  --hc-light: color-mix(in srgb, var(--hc) 35%, #fff);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 14px;
  padding: 18px 18px 18px 24px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--panel) 45%, color-mix(in srgb, var(--hc) 30%, var(--panel)) 100%);
  box-shadow: var(--panel-shadow);
}
.callout::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--hc-light); }
.callout__title { margin: 0 0 6px; font-size: 22px; line-height: 1.15; color: var(--hc-light); }
.callout__text { margin: 0; line-height: 1.55; }
.callout__art {
  position: relative;
  width: 112px;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--hc-light);
  border-radius: var(--radius-sm);
  background: var(--hc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hc) 35%, transparent), 0 8px 22px rgb(0 0 0 / .35);
}
.callout__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.callout__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--hc) 0%, color-mix(in srgb, var(--hc) 60%, transparent) 14%, transparent 36%);
  pointer-events: none;
}
@media (max-width: 600px) {
  .callout { gap: 14px; padding: 14px 14px 14px 20px; }
  .callout__art { width: 80px; }
}

/* Mitarbeiter des Monats, im Winter enger */
.hero-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.hero-card {
  --hc: #1a2a36;
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 3px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--hc);
  box-shadow: var(--panel-shadow);
  isolation: isolate;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--hc) 0%, color-mix(in srgb, var(--hc) 80%, transparent) 20%, transparent 48%);
}
.hero-card__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-card__name {
  position: absolute;
  left: 14px;
  right: 10px;
  bottom: 12px;
  overflow: hidden;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgb(0 0 0 / .6);
}
a.hero-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--hc) 70%, transparent); }
@media (max-width: 1024px) {
  .hero-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
}

/* Parkplaetze nebeneinander, Kleinwagen bevorzugt */
.lab-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 960px; margin-top: 14px; }
.lab-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.lab-card__art { aspect-ratio: 1 / 1; }
/* Fahrradstaender direkt nach den Parkplaetzen, Breite wie Stellplatz plus Bordstein */
.block--after-lab .tiles { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); width: calc((min(100% + 34px, 960px) - 28px) / 3 - 22px); }
@media (max-width: 1024px) {
  .lab-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block--after-lab .tiles { width: calc((min(100% + 34px, 960px) - 14px) / 2 - 22px); }
}

/* Tiefgarage: Ebene pro Zeile, links Schranke, rechts Stellplaetze; bei Hochwasser uebereinander */
.lab-rows { display: grid; gap: 14px; margin-top: 14px; }
.lab-row {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.lab-row__art { aspect-ratio: 1 / 1; }
.lab-row__bosses { align-content: start; grid-template-columns: repeat(auto-fill, minmax(56px, 64px)); }
@media (max-width: 600px) {
  .lab-row { grid-template-columns: 1fr; }
  .lab-row__art { max-width: 280px; }
}

/* Fahrgemeinschaften: Karte pro Gruppe, Stufen nach Kilometerpauschale */
.alliances { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.alliances--article { grid-template-columns: repeat(auto-fill, minmax(280px, 460px)); }
.alliance {
  padding: 12px 14px 14px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.alliance__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.alliance__head img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.alliance__name { display: block; font-size: 18px; line-height: 1.15; }
.alliance__class { color: var(--text-muted); font-size: 12.5px; }
.alliance__class:hover { color: var(--accent); }
.alliance .tiles { grid-template-columns: repeat(auto-fill, minmax(48px, 56px)); margin-bottom: 8px; }
.alliance__tier { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: var(--radius-sm); background: var(--panel-2); }
.alliance__tier + .alliance__tier { margin-top: 6px; }
/* Fuellstand der Kaffeemaschine: Balken nach Tassen, leere Tassen gedimmt */
.pips {
  flex: none;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rows), 1fr);
  height: 31px;
  grid-auto-columns: 7px;
  gap: 2px;
  margin-top: 2px;
}
.pips i { border-radius: 2px; background: color-mix(in srgb, var(--text) 16%, transparent); }
.pips i.on { background: var(--ac); }
.alliance__tier p { margin: 0; font-size: 13px; line-height: 1.45; }
.alliance__tier p + p { margin-top: 3px; }
.alliance__common { margin-top: 8px; padding: 0 8px; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.alliance__common p { margin: 0; }
.alliance__common p + p { margin-top: 3px; }

/* --- Pressemitteilungen --- */
.article-part { margin-top: 22px; }
.article-part > .block:first-of-type { margin-top: 0; }
.article p { max-width: 820px; margin: 0 0 12px; line-height: 1.6; }
.article p:last-child { margin-bottom: 0; }
.article p + .link-grid, .article .link-grid + p { margin-top: 12px; }
a.ref { color: var(--accent); font-weight: 700; }
a.ref:hover { text-decoration: underline; }
.article__sub { margin: 22px 0 8px; font-size: 18px; text-transform: uppercase; color: var(--accent); }
.article__sub:first-child { margin-top: 0; }
/* Rangliste Tischkicker: Buchstabe der Liga + Spielerfotos */
.tier-list { display: grid; gap: 6px; margin: 0 0 12px; }
.tier-list:last-child { margin-bottom: 0; }
.tier-list__row { --tier: #8a8f98; display: grid; grid-template-columns: 64px 1fr; border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm); overflow: hidden; background: color-mix(in srgb, var(--tier) 7%, transparent); }
.tier-list__row--s { --tier: #e5534b; }
.tier-list__row--a { --tier: #e8913a; }
.tier-list__row--b { --tier: #d9b43c; }
.tier-list__row--c { --tier: #6cb35c; }
.tier-list__row--d { --tier: #4f8fd6; }
.tier-list__tier { display: flex; align-items: center; justify-content: center; font-size: 34px; line-height: 1;
  color: #1a1a1f; background: var(--tier); text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
.tier-list__items { display: flex; flex-wrap: wrap; gap: 10px 8px; padding: 10px 12px; }
.tier-list__item { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 96px; text-align: center; }
.tier-list__item .tile { width: 56px; }
.tier-list__item:hover .tile { transform: translateY(-2px); box-shadow: 0 0 10px color-mix(in srgb, var(--rc, var(--accent)) 55%, transparent); }
.tier-list__name { font-size: 12px; line-height: 1.25; font-weight: 700; color: var(--text-muted); hyphens: auto; overflow-wrap: break-word; }
.tier-list__item:hover .tier-list__name { color: var(--text); }
@media (max-width: 640px) { .tier-list__row { grid-template-columns: 44px 1fr; } .tier-list__tier { font-size: 26px; }
  .tier-list__item { width: 80px; } .tier-list__item .tile { width: 48px; } }
/* Speiseplan als Tabelle; Punkt vor dem Gericht = Allergene */
.article-table { max-width: 820px; margin: 0 0 12px; overflow-x: auto; }
.article-table:last-child { margin-bottom: 0; }
.article-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article-table th { padding: 8px 12px; text-align: left; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-label); border-bottom: 1px solid var(--panel-border); }
.article-table td { padding: 8px 12px; border-bottom: 1px solid var(--panel-border); white-space: nowrap; }
.article-table td:first-child { font-weight: 700; }
.article-table tbody tr:last-child td { border-bottom: 0; }
.article-table tbody tr:hover td { background: var(--control-bg); }
.article-table__dot { display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
  border-radius: 50%; background: var(--dc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--dc) 35%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.article__img { margin: 0 0 12px; }
.article__img img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
/* Nachtversion des Logos fuer die Leuchtreklame */
.article__img img.only-light, [data-theme="light"] .article__img img.only-dark { display: none; }
[data-theme="light"] .article__img img.only-light { display: block; }
/* Foto rechts, Text fliesst drumherum wie in der Werkszeitung */
.article { display: flow-root; }
.article__img--right { float: right; width: 250px; max-width: 40%; margin: 0 0 12px 20px; }
.article__img--right img { width: 100%; }
.article__sub { clear: both; }
@media (max-width: 640px) { .article__img--right { margin-left: 12px; } }
/* kleines Portraet neben dem Absatz, unten Sepia-Verlauf */
.article__img--icon {
  --hc: #1a2a36;
  position: relative;
  float: right;
  width: 120px;
  max-width: 30%;
  margin: 0 0 8px 16px;
  overflow: hidden;
  border: 2px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: var(--hc);
}
.article__img--icon img { width: 100%; border-radius: 0; }
.article__img--icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--hc) 0%, color-mix(in srgb, var(--hc) 60%, transparent) 14%, transparent 34%);
  pointer-events: none;
}
/* Dienstweg: Stationen mit Pfeilen, Vertretungen untereinander */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chain__step { display: grid; gap: 6px; }
.chain__step .tile { width: 64px; }
.chain__arrow { color: var(--text-muted); font-size: 22px; font-weight: 800; }
/* mehrere Dienstwege als Raster */
.chains { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 14px; }
.chains .chain { margin-top: 0; justify-content: center; }
/* Bezugsquellen: Karte pro Lieferant in Vertragsfarbe, unten Ablage fuer Lieferscheine */
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.source {
  --rc: var(--panel-border);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 10%, var(--panel)) 0%, var(--panel) 65%);
  box-shadow: var(--panel-shadow);
}
.source::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--rc); opacity: .85; }
.source__item { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px; color: var(--text); }
.source__item .tile { flex: none; width: 56px; }
.source__item b { font-size: 15px; line-height: 1.25; }
.source__item:hover b { color: var(--accent); }
.source__item:hover .tile { box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 55%, transparent); }
.source__from {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--panel-border);
  background: var(--panel-2);
}
.source__from .tile { width: 44px; }
/* Pokale der Betriebssportgruppe: Stufe und Vitrine; Anker rutscht nicht unter das Vordach */
.trophy {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel-2);
  scroll-margin-top: 90px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.trophy:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.trophy__icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.trophy__body { min-width: 0; }
.trophy__name { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.trophy__descr { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.trophy__need { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; }
.trophy__need span { color: var(--text-muted); }
.trophy__need a { color: var(--accent); }
.trophy-tiers { display: grid; gap: 18px; margin-top: 14px; }
/* Rahmenfarbe nach Medaille: Blech, Zinn, Kupfer, Bronze, Messing */
.trophy-tier--1 { --tc: #878787; }
.trophy-tier--2 { --tc: #dad1be; }
.trophy-tier--3 { --tc: #39a42b; }
.trophy-tier--4 { --tc: #006edf; }
.trophy-tier--5 { --tc: #9705e2; }
.trophy-tier .trophy { border-color: color-mix(in srgb, var(--tc) 65%, var(--panel-border)); }
.trophy-tier .trophy__icon { box-shadow: 0 0 0 2px var(--tc); }
.trophy-tier__title { margin: 0 0 10px; font-size: 18px; color: var(--accent); }
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
/* Fundsachen im Archiv: Symbol links, Beschreibung rechts */
.artifacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.artifact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.artifact__icon { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.artifact__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.artifact__name { font-size: 15px; line-height: 1.25; }
.artifact__body small { color: var(--text-muted); line-height: 1.45; }
/* Kacheln der Bildergalerie (Betriebsausflug), Einzelbild nicht breiter als das Plakat */
.atiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.atiles--one { grid-template-columns: minmax(0, 568px); }
@media (max-width: 860px) { .atiles:not(.atiles--one) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .atiles:not(.atiles--one) { grid-template-columns: 1fr; } }
.atile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.atile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--panel-border));
  box-shadow: var(--panel-shadow), 0 10px 26px -12px color-mix(in srgb, var(--accent) 50%, transparent);
}
@media (prefers-reduced-motion: reduce) { .atile, .atile:hover { transition: none; transform: none; } }
.atile { position: relative; }
.atile__img { display: block; width: 100%; height: auto; }
/* Bildunterschrift ueber dem Foto; Verlauf misst der Fotograf mit dem Belichtungsmesser */
.atile::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--tc, #000) 85%, transparent), transparent); }
.atile__title { position: absolute; inset: auto 0 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 16px; font-size: 20px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.atile__go { color: var(--accent); transition: transform .2s ease; }
.atile:hover .atile__go { transform: translateX(3px); }
/* Glossar Amtsdeutsch: Karten mit Lampe und Untertitel */
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 600px) { .terms { grid-template-columns: 1fr; } }
.term {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--panel-border));
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(120% 90% at 0 0, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 55%),
    var(--panel);
  box-shadow: var(--panel-shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.term:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--panel-border));
  box-shadow: var(--panel-shadow), 0 10px 28px -12px color-mix(in srgb, var(--accent) 45%, transparent);
}
@media (prefers-reduced-motion: reduce) { .term, .term:hover { transition: none; transform: none; } }
.term__head { display: flex; align-items: center; gap: 16px; }
.term__icon {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
              0 6px 22px -4px color-mix(in srgb, var(--accent) 55%, transparent);
}
.term__title { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.term__abbr { font-size: 30px; line-height: 1; color: var(--accent); }
.term__sub { font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.term__text { margin: 0; line-height: 1.6; }
/* Telefonliste der Durchwahlen */
.clicker-abilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.clicker-ability {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}
.clicker-ability__hero { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); }
.clicker-ability__hero .tile { flex: none; width: 48px; }
.clicker-ability__hero b { font-size: 15px; line-height: 1.25; }
a.clicker-ability__hero:hover b { color: var(--accent); }
.clicker-ability__body { flex: 1; border-radius: 0; border-top: 1px solid var(--panel-border); padding: 12px 14px; }
/* Paarung: Pfoertner + Schluessel */
.bundle { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin: 4px 0 14px;
  padding: 14px 22px; background: var(--panel-2); border: 1px solid var(--panel-border); border-radius: var(--radius); }
.bundle__icons { display: flex; align-items: center; gap: 16px; }
.bundle__icons .tile { width: 84px; height: 84px; }
.bundle__plus { color: var(--accent); font-size: 34px; font-weight: 900; line-height: 1; }
/* Kantinenabrechnung: Posten mit Plus und Gleich, Summe rechts, wenn der Bon breit genug ist; Pfand extra */
.synergy {
  container-type: inline-size;
  margin-top: 14px; padding: 18px 22px;
  border: 1px solid var(--panel-border); border-radius: var(--radius);
  background: linear-gradient(90deg, var(--panel-2) 0%, var(--panel) 100%); box-shadow: var(--panel-shadow);
}
.synergy__body { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 12px; }
.synergy__combo { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px; }
.synergy__result { justify-self: stretch; padding: 12px 0 0; border-top: 3px solid var(--accent); }
@container (min-width: 640px) {
  .synergy--n2 .synergy__body { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 18px; }
  .synergy--n2 .synergy__combo { flex-wrap: nowrap; }
  .synergy--n2 .synergy__result { padding: 0 0 0 18px; border-top: 0; border-left: 3px solid var(--accent); }
}
@container (min-width: 772px) {
  .synergy--n3 .synergy__body { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 18px; }
  .synergy--n3 .synergy__combo { flex-wrap: nowrap; }
  .synergy--n3 .synergy__result { padding: 0 0 0 18px; border-top: 0; border-left: 3px solid var(--accent); }
}
@container (min-width: 904px) {
  .synergy--n4 .synergy__body { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 18px; }
  .synergy--n4 .synergy__combo { flex-wrap: nowrap; }
  .synergy--n4 .synergy__result { padding: 0 0 0 18px; border-top: 0; border-left: 3px solid var(--accent); }
}
@container (min-width: 1036px) {
  .synergy--n5 .synergy__body { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; justify-items: stretch; gap: 18px; }
  .synergy--n5 .synergy__combo { flex-wrap: nowrap; }
  .synergy--n5 .synergy__result { padding: 0 0 0 18px; border-top: 0; border-left: 3px solid var(--accent); }
}
.synergy__part { display: grid; justify-items: center; gap: 6px; width: 92px; color: var(--text); text-decoration: none; }
.synergy__part .tile { width: 76px; height: 76px; }
.synergy__part:hover .tile { box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent); }
.synergy__name { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; }
.synergy__sign { align-self: start; margin-top: 20px; color: var(--accent); font-size: 32px; font-weight: 900; line-height: 1; }
.synergy__eq { align-self: center; margin-top: 0; }
.synergy__title { margin: 0 0 6px; font-size: 22px; line-height: 1.15; color: var(--accent); }
.synergy__text { margin: 0; line-height: 1.55; }
@media (max-width: 600px) { .synergy { padding: 14px; } }
/* schmaler Bon: kleinere Ziffern */
@container (max-width: 500px) {
  .synergy__combo { flex-wrap: nowrap; gap: 4px; }
  .synergy__part { width: 64px; }
  .synergy__part .tile { width: 54px; height: 54px; }
  .synergy__name { font-size: 11px; }
  .synergy__sign { margin-top: 14px; font-size: 24px; }
}
/* Reihe Verweise auf Rundschreiben */
.article-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.article-link .feat__name { font-size: 20px; }
@media (max-width: 600px) { .article-links { grid-template-columns: 1fr; gap: 10px; } }
/* Grundriss Lagerhallen: Waende per Rahmenbild, Rampe links, Schild mit fester Hoehe; Paletten ragen unter die Rampe */
.lairs { display: grid; gap: 34px; max-width: 1000px; margin-top: 40px; }
.lair {
  container-type: inline-size;
  position: relative; display: grid; grid-template-columns: 44% 1fr; grid-template-rows: auto auto auto 1fr; column-gap: 10px;
  border: 28px solid transparent; border-image: var(--bg) 44 fill / 28px stretch;
  filter: drop-shadow(0 8px 16px rgb(0 0 0 / .45));
}
.lair__art { grid-column: 1; grid-row: 1 / 5; align-self: start; margin: -14px 0 0 -18px; pointer-events: none; }
.lair__art img { width: 108%; max-width: 440px; height: auto; display: block; filter: drop-shadow(0 12px 18px rgb(0 0 0 / .45)); }
.lair__head { grid-column: 2; grid-row: 1; position: relative; display: flex; align-items: center; margin: -34px -30px 6px -28px; padding-left: 46px; }
.lair__logo { position: absolute; left: 0; top: 50%; transform: translateY(-58%); width: 84px; height: 84px; z-index: 1;
  filter: drop-shadow(0 3px 6px rgb(0 0 0 / .5)); }
.lair__title {
  flex: none; height: 60px; width: auto; aspect-ratio: 837 / 177; margin: 0; display: flex; align-items: center;
  padding: 0 34px 2px 40px; background: var(--hd) center / 100% 100% no-repeat; white-space: nowrap;
  color: #f3f8ff; -webkit-text-stroke: var(--title-stroke-w) #0b1626; paint-order: stroke fill; font-size: var(--fs, 28px); line-height: 1.05;
}
/* Palettengroesse: voll, bis die Halle voll ist; Gaenge nicht doppelt belegen */
.lair__row { --g: 8px; --hs: clamp(44px, calc(14cqi - 18px), 68px); --rs: calc(var(--hs) * .82); }
.lair__row { grid-column: 2; position: relative; z-index: 1; isolation: isolate; justify-self: start; padding-right: 24px; }
.lair__row::before { content: ""; position: absolute; z-index: -1; inset: -16px -40px -12px -36px;
  background: radial-gradient(farthest-side, rgb(var(--spot) / .62) 0%, rgb(var(--spot) / .38) 55%, rgb(var(--spot) / 0) 100%); }
.lair__row--loot { align-self: start; margin-left: calc(-1.2 * (var(--rs) + var(--g))); margin-top: 4px; }
.lair__label { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px 2px;
  color: #f3f8ff; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
.lair__icons { display: flex; flex-wrap: nowrap; gap: var(--g); padding: 2px 0 6px; }
.lair__hero, .lair__reward { width: var(--hs); height: var(--hs); border-radius: var(--radius-sm); overflow: hidden; flex: none;
  border: 2px solid rgb(var(--spot)); background: var(--panel); box-shadow: 0 3px 7px rgb(10 20 40 / .45); transition: transform .15s; }
.lair__reward { width: var(--rs); height: var(--rs); }
/* Kuehlhallen: eine Reihe mehr, Pfeil zwischen Tuer und Tiefkuehlware */
.lair--hunt { grid-template-rows: auto auto auto auto 1fr; }
.lair--hunt .lair__art { grid-row: 1 / 6; }
.lair__arrow { align-self: center; color: #f3f8ff; font-size: 22px; font-weight: 800; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
.lair__hero img, .lair__reward img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lair__hero:hover, .lair__reward:hover { transform: translateY(-2px); }
@media (max-width: 720px) {
  .lair { grid-template-columns: 1fr; border-width: 22px; border-image-width: 22px; }
  .lair__art, .lair--hunt .lair__art { display: none; }   /* Lagerhalle auf dem Diensthandy ausgeblendet: Datenvolumen */
  .lair__head { grid-row: 1; grid-column: 1; margin: -26px -24px 4px -22px; padding-left: 34px; }
  .lair__logo { width: 60px; height: 60px; }
  .lair__title { font-size: calc(var(--fs, 28px) * .72); height: 48px; padding: 0 26px 2px 32px; }
  .lair__row { grid-column: 1; --hs: clamp(44px, calc(19cqi - 13px), 68px); }
  .lair__row--loot { margin-left: 0; }
}
