/* Die Ausstellungstafel für den Bildschirm - dieselbe Gestaltung wie beim Druck
   (siehe schilder.css im Projekt darüber), nur verkleinert dargestellt.

   Die Tafel wird in Originalgrösse gezeichnet (148 x 105 mm) und über
   transform: scale() in ihre Kachel geschrumpft. So sieht man wirklich das,
   was später aus dem Drucker kommt, und nicht eine Nachbildung davon. */

.tafelgitter {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.kachel {
  position: relative;
  width: 100%;
  aspect-ratio: 148 / 105;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  background: #fff;
}

.kachel .schild {
  position: absolute;
  top: 0;
  left: 0;
  width: 148mm;
  height: 105mm;
  transform-origin: top left;
  transform: scale(var(--maszstab, .6));
}

/* Kein Abdunkeln: die Tafel soll auch hier so aussehen, wie sie gedruckt würde.
   Der Hinweis oben rechts genügt als Merkzeichen. */

/* ------------------------------------------------------- die Tafel selbst */

.schild {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--schwarz);
  font-family: var(--schrift-text);
  line-height: 1.5;
}

.schild .kopf {
  height: 9mm;
  flex: 0 0 9mm;
  background: var(--gelb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5mm;
}

.schild .thema {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 8.5pt;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.schild .noppen { display: flex; gap: 1.5mm; }

.schild .noppen span {
  width: 2.8mm;
  height: 2.8mm;
  border-radius: 50%;
  background: #A89613;
  opacity: .5;
}

.schild .titelblock {
  flex: 0 0 auto;
  padding: 3.4mm 4.5mm 3mm;
  border-bottom: .3mm solid var(--linie);
}

.schild .titel {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 25pt;
  line-height: 1.03;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.schild .untertitel {
  margin-top: 1.4mm;
  font-size: 8.5pt;
  line-height: 1.25;
  color: var(--grau);
}

.schild .koerper { flex: 1 1 auto; display: flex; min-height: 0; }

.schild .bildfeld {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--grau-hell);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5mm;
}

.schild .bildfeld img { max-width: 100%; max-height: 100%; object-fit: contain; }

.schild .kein-bild {
  font-family: var(--schrift-titel);
  font-size: 8pt;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #B4B4AC;
  text-align: center;
}

.schild .fakten {
  flex: 0 0 46mm;
  background: var(--schwarz);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2mm 0;
}

.schild .fakt { padding: 1.9mm 4.5mm; border-top: .3mm solid rgba(255, 255, 255, .15); }
.schild .fakt:first-child { border-top: none; }

.schild .fakt .wert {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 15pt;
  line-height: 1;
  color: var(--gelb);
  white-space: nowrap;
}

.schild .fakt .beschriftung {
  margin-top: .7mm;
  font-size: 6pt;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
}

.schild .fuss {
  height: 12mm;
  flex: 0 0 12mm;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5mm;
  border-top: .3mm solid var(--linie);
}

.schild .fuss .logo { height: 7mm; width: auto; }
.schild .erbauer { text-align: right; line-height: 1.2; }

.schild .erbauer .beschriftung {
  font-size: 6pt;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grau);
}

.schild .erbauer .name {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 11pt;
}

/* ------------------------------------------------------------- Drumherum */

.filterleiste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.filter {
  padding: 7px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--linie);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.filter[aria-pressed="true"] {
  background: var(--gelb);
  border-color: var(--gelb);
}

.zaehler {
  margin-top: 18px;
  font-size: 14px;
  color: var(--grau);
}

.kachel .marke-fehlt {
  position: absolute;
  right: 0;
  top: 0;
  padding: 4px 10px;
  border-bottom-left-radius: 6px;
  background: var(--schwarz);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
