/* ==========================================================================
   Das Tablet (.tablet): oben die Nahaufnahme über die volle Breite, ihre
   Beschriftung steht auf dem dunklen Tisch; darunter Seitenansicht und schräge
   Ansicht. Dunkel ist alles auch im hellen Design. Die Abendszene selbst steht
   in base.css (.evening), die Karte der Startseite zeigt sie auch.
   ========================================================================== */

.tablet { --gap: 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 1rem; }
.tablet :is(figure, p) { margin: 0; }
.tablet figure { border-radius: var(--radius-m); background: #10141c; overflow: hidden; }
.tablet picture { display: contents; }
.tablet-shot { position: relative; overflow: hidden; }
.tablet-shot > picture > img { display: block; width: 100%; height: auto; }

/* ---- Nahaufnahme ---------------------------------------------------------- */
.tablet .tablet-macro { position: relative; grid-column: 1 / -1; }
.tablet-macro .tablet-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top left, rgba(14, 14, 19, 0.92) 18%, rgba(14, 14, 19, 0.55) 38%, transparent 56%);
}
.tablet-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 2px;
  background: #fff;
  color: #0a0f17;
  font: 600 0.82rem/1 var(--font-mono);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.tablet-pin.is-on { background: #ffb980; transform: translate(-50%, -50%) scale(1.2); }
.is-armed .tablet-macro:not(.is-seen) .tablet-pin { transform: translate(-50%, -50%) scale(0); }
.is-armed .is-seen .tablet-pin:not(.is-on) { transition-delay: calc(0.3s * var(--n)); }
.tablet-pin:nth-of-type(1) { --n: 1; }
.tablet-pin:nth-of-type(2) { --n: 2; }
.tablet-pin:nth-of-type(3) { --n: 3; }
.tablet-pin:nth-of-type(4) { --n: 4; }

.tablet-notes {
  position: absolute;
  z-index: 1;
  right: 2rem; bottom: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.75rem;
  width: min(48%, 32rem);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pin;
}
.tablet-notes li { counter-increment: pin; font-size: 0.9rem; line-height: 1.5; color: #c3cad4; }
.tablet-notes b { display: block; font: 600 1rem/1.4 var(--font-display); color: #fff; transition: color 0.25s var(--ease); }
.tablet-notes b::before { content: counter(pin) "\2002"; font: 600 0.82rem/1 var(--font-mono); color: #ffb980; }
.tablet-notes .is-on b { color: #ffb980; }

/* ---- Seitenansicht und schräge Ansicht -------------------------------------- */
.tablet figcaption { padding: 0.95rem 1.1rem 1.1rem; font-size: 0.9rem; line-height: 1.5; color: #b4bfcc; }
.tablet figcaption b { display: block; font: 600 1rem/1.4 var(--font-display); color: #fff; }
.tablet figcaption a { color: #ffb980; white-space: nowrap; }

.tablet-credits { grid-column: 1 / -1; font: 400 0.74rem/1.5 var(--font-mono); color: var(--c-ink-3); }

/* Wird es eng, steht die Beschriftung unter der Nahaufnahme */
@media (max-width: 960px) {
  .tablet-macro .tablet-shot::after { content: none; }
  .tablet-notes { position: static; width: auto; padding: 1.2rem 1.1rem 1.3rem; }
}
@media (max-width: 700px) {
  .tablet { grid-template-columns: minmax(0, 1fr); }
  .tablet-macro { grid-column: 1; }
  /* Näher heran: Der leere Tisch rechts fällt weg. Die Nummern bleiben an ihrer Stelle. */
  .tablet-macro .tablet-shot { width: 180%; }
}
@media (max-width: 430px) {
  .tablet-notes { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
}
