/* BDL Nav – Sticker-Buttons (Button 03112026)
   Optik aus nav-buttons-sticker.html. Die Scheiben sind echte Links.
   Orbitron 800 kommt aus dem <head> der Startseite.
*/

.nb-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 30px);
  width: min(1150px, 96vw);
  margin-inline: auto;
  margin-block: 0.35rem 0.6rem;
  justify-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .nb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nb {
  --s: clamp(140px, 17vw, 205px);
  --c: 155, 92, 255;
  position: relative;
  display: inline-block;
  width: var(--s);
  height: var(--s);
  border: 0;
  padding: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  vertical-align: middle;
  transition: transform 0.15s, box-shadow 0.6s;
}

.nb:hover {
  transform: scale(1.03);
}

.nb:focus-visible {
  outline: 2px solid rgb(var(--c));
  outline-offset: 6px;
}

@media (max-width: 560px) {
  .nav-buttons-section {
    overflow-x: clip;
  }

  .nb-grid {
    width: min(100% - 1.5rem, 520px);
    gap: 30px 16px;
  }

  .nb {
    --s: min(38vw, 160px);
  }
}

.nb > span {
  pointer-events: none;
}

.ring,
.prog {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  -webkit-mask:
    radial-gradient(circle closest-side, transparent 80.3%, #000 81.3%, #000 86%, rgba(0, 0, 0, 0.55) 94%, rgba(0, 0, 0, 0.12) 99.5%, transparent 100%),
    repeating-conic-gradient(#000 0 6.6deg, transparent 6.6deg 7.5deg);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle closest-side, transparent 80.3%, #000 81.3%, #000 86%, rgba(0, 0, 0, 0.55) 94%, rgba(0, 0, 0, 0.12) 99.5%, transparent 100%),
    repeating-conic-gradient(#000 0 6.6deg, transparent 6.6deg 7.5deg);
  mask-composite: intersect;
}

.ring {
  inset: -6%;
  background: rgba(var(--c), 0.35);
}

.prog {
  inset: -6%;
  background: conic-gradient(#e6d4ff 0, rgb(var(--c)) calc(var(--p, 0) * 1%), transparent 0);
  filter: drop-shadow(0 0 4px rgb(var(--c))) drop-shadow(0 0 10px rgb(var(--c)));
}

.flash {
  position: absolute;
  inset: 9.5%;
  border-radius: 50%;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle, #fff 0 25%, rgba(255, 210, 220, 0.95) 40%, rgba(255, 40, 75, 0.7) 62%, transparent 75%);
}

.nb.win {
  --c: 255, 30, 70;
  box-shadow: 0 0 30px 4px rgba(255, 30, 70, 0.5), 0 0 70px 8px rgba(255, 30, 70, 0.2);
}

.nb.win .flash {
  animation: nb-flash 0.45s ease-out;
  background: radial-gradient(circle, rgba(255, 60, 90, 0.95) 0 25%, rgba(255, 30, 70, 0.8) 45%, rgba(200, 0, 40, 0.5) 62%, transparent 75%);
}

.nb.win .prog {
  background: rgb(255, 30, 70);
  filter: drop-shadow(0 0 4px #ff1e46) drop-shadow(0 0 10px #ff1e46);
}

.nb.win .ring {
  background: rgba(255, 30, 70, 0.45);
}

@keyframes nb-flash {
  0% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1); }
}

.nb.win .lbl span {
  color: #ff2a50;
  text-shadow:
    0 0 8px #ff1e46,
    0 0 22px #ff1e46,
    1px 1px 0 #000,
    2px 2px 3px #000;
}

.face {
  position: absolute;
  inset: 9.5%;
  border-radius: 50%;
  background: #111 url("board.jpg") center / 143% auto no-repeat;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(var(--c), 0.6), 0 0 14px rgba(var(--c), 0.4);
}

.face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 35%, rgba(0, 0, 0, 0.35) 62%, rgba(0, 0, 0, 0.65) 78%, rgba(0, 0, 0, 0.85) 100%);
}

.face::before,
.lbl::after {
  transition: opacity 0.4s;
}

.nb.loading .face::before,
.nb.win .face::before,
.nb.loading .lbl::after,
.nb.win .lbl::after {
  opacity: 0;
}

.face::before {
  content: "";
  position: absolute;
  inset: 1.2%;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  border: 3px solid #ff1e46;
  box-shadow: 0 0 8px #ff1e46, inset 0 0 8px #ff1e46;
  animation: nb-tri 9s ease-in-out infinite;
}

@keyframes nb-tri {
  0%, 100% {
    border-color: #ff1e46;
    box-shadow: 0 0 6px rgba(255, 30, 70, 0.7), inset 0 0 6px rgba(255, 30, 70, 0.5);
  }
  16.7% {
    border-color: #ff3a5c;
    box-shadow: 0 0 12px rgba(255, 30, 70, 0.95), inset 0 0 10px rgba(255, 30, 70, 0.7);
  }
  33.3% {
    border-color: #1ee66e;
    box-shadow: 0 0 6px rgba(30, 230, 110, 0.7), inset 0 0 6px rgba(30, 230, 110, 0.5);
  }
  50% {
    border-color: #3dff8a;
    box-shadow: 0 0 12px rgba(30, 230, 110, 0.95), inset 0 0 10px rgba(30, 230, 110, 0.7);
  }
  66.7% {
    border-color: #ffd21e;
    box-shadow: 0 0 6px rgba(255, 210, 30, 0.7), inset 0 0 6px rgba(255, 210, 30, 0.5);
  }
  83.3% {
    border-color: #ffe04a;
    box-shadow: 0 0 12px rgba(255, 210, 30, 0.95), inset 0 0 10px rgba(255, 210, 30, 0.7);
  }
}

.lbl {
  position: absolute;
  inset: 9.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  transform: rotate(-3deg);
  font-family: Orbitron, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.96;
  letter-spacing: 0.02em;
  font-size: calc(var(--s) * var(--f, 0.17));
}

.lbl[data-lines="3"] {
  --f: 0.135;
}

.lbl span {
  display: block;
  white-space: nowrap;
  text-shadow:
    0.022em 0 0 #000,
    0.016em 0.016em 0 #000,
    0 0.022em 0 #000,
    -0.016em 0.016em 0 #000,
    -0.022em 0 0 #000,
    -0.016em -0.016em 0 #000,
    0 -0.022em 0 #000,
    0.016em -0.016em 0 #000,
    2px 2px 4px rgba(0, 0, 0, 0.85);
}

.lbl::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 35%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: nb-shine 14s ease-in-out infinite;
  animation-delay: calc(var(--d) * 1.2s - 10.3s);
}

@keyframes nb-shine {
  0%, 74% { left: -60%; }
  100% { left: 130%; }
}

.nav-portfolio.is-fx-paused .face::before,
.nav-portfolio.is-fx-paused .lbl::after {
  animation-play-state: paused;
}

/* Kein roter Trenner direkt unter den Scheiben */
.sound-rubric-wrap.section-breath::before {
  content: none;
}

@media (max-width: 640px) {
  .rubric--nav .rubric-lead--fotos .rubric-lead-line {
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .rubric--nav .rubric-lead--fotos {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .face::before,
  .lbl::after {
    animation: none;
  }

  .nb:hover {
    transform: none;
  }
}
