/**
 * SpecularButton (Vanilla-Port) — nur Uebertritt-Anker Studio <-> GastroFlow.
 * V20 Desktop-Nav bleibt der bestehende Chip. V19 und V20-Drawer sind eigene Formen.
 */
.v20-nav > a.is-product.v20-specular {
  --sb-radius: 999px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0.55;
  --sb-blur: 10px;
  --sb-text-color: var(--v20-blue-deep, #143c8d);

  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: var(--v20-tap, 44px);
  padding: 6px 14px;
  margin: 0;
  border: none;
  border-radius: var(--sb-radius);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px color-mix(in srgb, var(--v20-gold, #cf9622) 28%, transparent),
    0 6px 16px -10px rgba(20, 60, 141, 0.35);
  outline: none;
  white-space: nowrap;
  overflow: visible;
  transition: color 0.18s, transform 0.16s ease, box-shadow 0.18s ease;
}

@media (min-width: 960px) {
  .v20-nav > a.is-product.v20-specular {
    display: inline-flex;
  }
}

@media (min-width: 1180px) {
  .v20-nav > a.is-product.v20-specular {
    padding: 8px 16px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .v20-nav > a.is-product.v20-specular:hover {
    color: var(--v20-blue, #225bcf);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.65),
      0 0 0 1px color-mix(in srgb, var(--v20-gold, #cf9622) 45%, transparent),
      0 8px 20px -10px rgba(207, 150, 34, 0.45);
  }
}

.v20-nav > a.is-product.v20-specular:active {
  transform: scale(0.96);
}

.v20-nav > a.is-product.v20-specular:focus-visible {
  outline: 3px solid var(--v20-blue, #225bcf);
  outline-offset: 3px;
}

.v20-nav > a.is-product.v20-specular .v20-specular__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.v20-nav > a.is-product.v20-specular .v20-specular__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.v20-nav > a.is-product.v20-specular .v20-specular__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.v20-nav > a.is-product.v20-specular .v20-icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .v20-nav > a.is-product.v20-specular .v20-specular__fx {
    display: none;
  }

  .v20-nav > a.is-product.v20-specular {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 0 0 1px color-mix(in srgb, var(--v20-gold, #cf9622) 35%, transparent);
  }
}

/* ---- V20 Drawer: volle Zeile, 48px, V20-Tokens — kein Nav-Chip ---- */
.v20-drawer__link.is-product.v20-specular {
  --sb-radius: 10px;
  --sb-tint: var(--v20-surface, #ffffff);
  --sb-tint-opacity: 0.5;
  --sb-blur: 8px;
  --sb-text-color: var(--v20-blue-deep, #143c8d);

  position: relative;
  overflow: visible;
  width: 100%;
  min-height: var(--v20-bm-row, 48px);
  border-radius: var(--sb-radius);
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px color-mix(in srgb, var(--v20-line, #dbe0da) 80%, var(--v20-gold, #cf9622));
}

.v20-drawer__link.is-product.v20-specular .v20-specular__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.v20-drawer__link.is-product.v20-specular .v20-specular__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.v20-drawer__link.is-product.v20-specular .v20-specular__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--v20-s-2, 8px);
}

@media (prefers-reduced-motion: reduce) {
  .v20-drawer__link.is-product.v20-specular .v20-specular__fx,
  .v20-drawer__link.is-product.v20-specular.is-specular-static .v20-specular__fx {
    display: none;
  }

  .v20-drawer__link.is-product.v20-specular {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--v20-gold, #cf9622) 40%, var(--v20-line, #dbe0da));
  }
}

/* ---- V19 Desktop-Chip: Studio in der 72px-Nav ---- */
.v19-desk-nav > a.is-product.v19-specular {
  --sb-radius: 999px;
  --sb-tint: #fffdf9;
  --sb-tint-opacity: 0.62;
  --sb-blur: 8px;
  --sb-text-color: var(--v19-espresso, #1c1917);

  position: relative;
  overflow: visible;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--sb-radius);
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 1px 2px rgba(28, 25, 23, 0.06),
    0 0 0 1px rgba(168, 162, 158, 0.45);
}

@media (hover: hover) and (pointer: fine) {
  .v19-desk-nav > a.is-product.v19-specular:hover {
    color: var(--v19-espresso, #1c1917);
  }
}

.v19-desk-nav > a.is-product.v19-specular:focus-visible {
  outline: 3px solid var(--v19-tomato, #e53e3e);
  outline-offset: 3px;
}

/* ---- V19 Mobilblock: volle Zeile, 12px-Radius, Parchment/Stone ---- */
#mobile-menu-panel a.v19-specular--panel {
  --sb-radius: 12px;
  --sb-tint: #faf8f5;
  --sb-tint-opacity: 0.35;
  --sb-blur: 8px;
  --sb-text-color: var(--v19-espresso, #1c1917);

  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  border-radius: var(--sb-radius);
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), #f5f5f4);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px #e7e5e4;
}

#mobile-menu-panel a.v19-specular--panel .v19-specular__label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  min-width: 0;
}

.v19-specular__fx,
.v20-specular__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.v19-specular__fx canvas,
.v20-specular__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.v19-desk-nav > a.is-product.v19-specular .v19-specular__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .v19-specular__fx,
  .v19-specular.is-specular-static .v19-specular__fx {
    display: none;
  }

  .v19-desk-nav > a.is-product.v19-specular,
  #mobile-menu-panel a.v19-specular--panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: inset 0 0 0 1px #a8a29e;
  }
}

/* Tap/Klick: kurzer Sweep. Sichtbar auch ohne Hover und wenn WebGL noch dunkel ist. */
.v19-specular::after,
.v20-specular::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.58) 50%,
    transparent 80%
  );
  transform: translateX(-55%);
}

.v19-specular.is-specular-tap,
.v20-specular.is-specular-tap {
  filter: brightness(1.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 0 0 1px rgba(255, 255, 255, 0.72),
    0 8px 22px -8px rgba(255, 255, 255, 0.55);
}

.v19-specular.is-specular-tap::after,
.v20-specular.is-specular-tap::after {
  animation: fenix-specular-tap-sweep 0.45s ease-out;
}

@keyframes fenix-specular-tap-sweep {
  0% {
    opacity: 0;
    transform: translateX(-55%);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(55%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v19-specular::after,
  .v20-specular::after,
  .v19-specular.is-specular-tap::after,
  .v20-specular.is-specular-tap::after {
    content: none;
    animation: none;
    opacity: 0;
  }
}
