/* Portfolio-Auswahl — nach styles.css einbinden */

.artwork-pick {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.25);
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-family: "Monument Grotesk", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.artwork-pick:hover {
  opacity: 1;
  border-color: rgba(17, 17, 17, 0.45);
  background: #fff;
}

.artwork-pick.is-in-portfolio {
  background: #111;
  color: #fff;
  border-color: #111;
  opacity: 1;
}

.artwork-pick:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.artwork-pick:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(17, 17, 17, 0.12);
}

.artwork-pick:disabled.is-in-portfolio {
  opacity: 0.52;
}

.portfolio-fab-wrap {
  position: fixed;
  right: calc(var(--safe-margin, 20px) + 24px);
  bottom: calc(var(--safe-margin-bottom, 60px) + 24px);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(300px, calc(100vw - 40px));
}

.portfolio-fab-hint {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.97);
  color: #333333;
  font-family: "Monument Grotesk", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: right;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}

.portfolio-fab-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.portfolio-fab {
  width: 100%;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: opacity 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.portfolio-fab:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.portfolio-fab:hover:not(:disabled) {
  background: #111;
  color: #fff;
}

/* „Werk anfragen“: gleiche Slot wie Portfolio-FAB, sichtbar nur in der Detailansicht */
.detailInquireBtn {
  display: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 18px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
  border: 1px solid #111;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

body.detail-open .portfolio-fab {
  display: none !important;
}

body.detail-open .detailInquireBtn {
  display: block !important;
}

.detailInquireBtn:hover {
  background: #111;
  color: #fff;
  opacity: 0.95;
}

@media (max-width: 640px) {
  .portfolio-fab-wrap {
    right: calc(var(--safe-margin, 20px) + 12px);
    bottom: calc(var(--safe-margin-bottom, 60px) + 12px);
    max-width: min(280px, calc(100vw - 28px));
  }

  .portfolio-fab-hint {
    font-size: 9px;
    padding: 8px 10px;
  }

  .portfolio-fab {
    padding: 10px 14px;
    font-size: 9px;
  }

  .detailInquireBtn {
    padding: 10px 14px;
    font-size: 9px;
  }
}
