/* ---------- Uhrzeit als Flip-Disk-Matrix ---------- */
.fm {
  max-width: 980px;
  margin: 18px auto 0;
  padding: 22px 24px 18px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--card) 58%, transparent);
  border: 1px solid color-mix(in srgb, var(--line3) 70%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 24px 50px -28px color-mix(in srgb, var(--acc) 45%, rgba(58, 36, 51, 0.5));
  animation: srIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fm-head,
.fm-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px;
}
.fm-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}
.fm-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--mute2);
}
.fm-bezel {
  margin: 14px 0 12px;
  padding: 14px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--body) 80%, #000 6%);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px color-mix(in srgb, var(--line3) 70%, transparent);
}
:root[data-theme='dark'] .fm-bezel {
  background: #0b0509;
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px var(--line);
}
.fm-screen {
  display: grid;
  grid-template-columns: repeat(var(--cols, 31), minmax(0, 1fr));
  gap: min(0.45vw, 3px);
}
.fm-disk {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  perspective: 400px;
  cursor: crosshair;
}
/* Jede Scheibe hat zwei Seiten: Rückseite (aus) und Vorderseite in Luna-Farbe (an) */
.fm-disk b,
.fm-disk u {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}
.fm-disk b {
  background: color-mix(in srgb, var(--line) 80%, var(--card));
  border: 1px solid var(--line3);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
  transform: rotateX(0deg);
}
.fm-disk u {
  text-decoration: none;
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, var(--acc) 55%, #fff),
    var(--acc) 60%
  );
  border: 1px solid color-mix(in srgb, var(--acc) 70%, #000);
  box-shadow:
    inset 0 -2px 5px rgba(0, 0, 0, 0.22),
    0 0 8px color-mix(in srgb, var(--acc) 40%, transparent);
  transform: rotateX(-180deg);
}
.fm-disk.on b {
  transform: rotateX(180deg);
}
.fm-disk.on u {
  transform: rotateX(0deg);
}
.fm-disk:hover b,
.fm-disk:hover u {
  transition-duration: 0.12s;
  transform: rotateX(90deg);
}
.fm-init .fm-disk b,
.fm-init .fm-disk u {
  transition: none;
}
.fm-foot {
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
}
@media (prefers-reduced-motion: reduce) {
  .fm-disk b,
  .fm-disk u {
    transition: none;
  }
}
