/* ==========================================================================
   SB — Kunst-Shop
   Design tokens
   ========================================================================== */

:root {
  /* Color */
  --color-bg: #ffffff;
  --color-bg-soft: #fafaf9;
  --color-ink: #17181c;
  --color-ink-soft: #55565c;
  --color-line: #eceae7;
  --color-pink: #f6c9d9;
  --color-blue: #c7dfef;
  --color-pink-strong: #f0a8c4;
  --color-blue-strong: #a9cbe6;

  /* Type */
  --font-signature: "Caveat", cursive;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1280px;
  --gap: 3rem;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

/* ==========================================================================
   Header — the signature is the logo
   ========================================================================== */

header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}

.signature-logo {
  width: auto;
  height: clamp(90px, 14vw, 140px);
  user-select: none;
}

.tagline {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* ==========================================================================
   Gallery grid
   ========================================================================== */

main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem 6rem;
}

.filter-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  position: relative;
}

.filter-row button {
  background: none;
  border: none;
  color: inherit;
  padding: 0.4rem 0;
  position: relative;
}

.filter-row button.active {
  color: var(--color-ink);
}

.filter-indicator {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-pink-strong);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.card {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  display: block;
  width: 100%;
  color: var(--color-ink);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.card:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -2.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--color-line);
}

.card-frame {
  position: relative;
  width: 100%;
  max-height: 620px;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.card-frame img,
.card-frame video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.card {
  opacity: 0;
  transform: scale(0.96) translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.card.in-view {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.card:hover .card-frame {
  transform: translateY(-4px);
  filter: drop-shadow(0 18px 28px rgba(23, 24, 28, 0.1));
}

.card:hover .card-frame img,
.card:active .card-frame img {
  transform: scale(1.04);
  filter: brightness(1.08) saturate(1.15);
}

.card-frame .placeholder-art {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sold-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 20;
  background: var(--color-ink);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
}

.card-meta {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.status-tag {
  font-style: italic;
  font-weight: 400;
  font-size: 0.8em;
  color: var(--color-ink-soft);
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  margin-top: 0.15rem;
}

.card-price {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  white-space: nowrap;
}

/* ==========================================================================
   Placeholder artwork — abstract, evokes wipe-technique + mist
   ========================================================================== */

.placeholder-art {
  position: relative;
  background: #ffffff;
}

.placeholder-art .smear {
  position: absolute;
  background: var(--color-ink);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
}

.placeholder-art .mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
}

/* ==========================================================================
   Detail overlay
   ========================================================================== */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1.5rem 4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-close {
  position: fixed;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 51;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  color: var(--color-pink-strong);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.overlay-close:focus {
  outline: none;
}

.overlay-close:focus-visible {
  outline: 2px solid var(--color-pink-strong);
  outline-offset: 2px;
}

.overlay-close:hover,
.overlay-close:active,
.overlay-close:focus {
  border-color: var(--color-pink-strong);
}

.overlay-close:hover {
  transform: rotate(90deg);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem;
  max-width: 1100px;
  width: 100%;
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .filter-row {
    gap: 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
  }

  header {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  main {
    padding: 1rem 1.25rem 5rem;
  }

  .grid {
    gap: 4.5rem;
  }

  .card-frame img,
  .card-frame video {
    max-height: 460px;
  }

  .detail-image img,
  .detail-image video {
    max-height: 480px;
  }

  .modal {
    padding: 1.75rem;
  }
}

.detail-image {
  background: transparent;
  display: flex;
  justify-content: center;
  max-height: 640px;
  min-width: 0;
}

.detail-image img,
.detail-image video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 640px;
  min-width: 0;
  display: block;
  animation: detailMediaFadeIn 0.2s ease;
}

@keyframes detailMediaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.detail-image .placeholder-art {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.detail-thumb {
  flex-shrink: 0;
}

.card-frame video,
.detail-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-bg-soft);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(23, 24, 28, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  pointer-events: none;
}

.detail-thumb {
  width: 64px;
  height: 64px;
  border-radius: 2px;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid transparent;
  background: var(--color-bg-soft);
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb:hover {
  opacity: 0.85;
}

.detail-thumb.active {
  opacity: 1;
  border-color: var(--color-ink);
}

.detail-info {
  padding-top: 0.5rem;
}

.detail-info h2 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.detail-technique {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.size-picker {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.size-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  border: 1px solid var(--color-line);
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--color-ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.size-option-price {
  font-size: 0.78rem;
  color: var(--color-ink-soft);
}

.size-option:hover {
  border-color: var(--color-ink-soft);
}

.size-option.active {
  border-color: var(--color-ink);
  background: var(--color-bg);
}

.detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 1.75rem;
}

.spec-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 0.3rem;
}

.spec-value {
  font-size: 1.05rem;
  white-space: nowrap;
}

.detail-description {
  color: var(--color-ink);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.btn-primary {
  background: var(--color-ink);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: var(--color-line);
  color: var(--color-ink-soft);
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Request modal (Anfrage senden)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(23, 24, 28, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  background: #fff;
  border-radius: 6px;
  max-width: 440px;
  width: 100%;
  padding: 2.5rem;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal {
  transform: translateY(0);
}

.modal h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.modal p.modal-sub {
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 16px;
  background: var(--color-bg-soft);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-blue-strong);
  outline-offset: 1px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-ink-soft);
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.checkbox-field input {
  margin-top: 0.2rem;
  accent-color: var(--color-ink);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn-secondary {
  background: none;
  border: 1px solid var(--color-line);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-line);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
}

footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keyboard focus visibility */
a:focus,
button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-pink-strong);
  outline-offset: 2px;
}

.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--color-ink-soft);
  padding: 0.1rem 0.15rem;
  font-family: inherit;
  cursor: pointer;
}

.lang-toggle button.active {
  color: var(--color-ink);
  font-weight: 600;
}

.lang-toggle .divider {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  background: var(--color-line);
}

.back-to-top {
  position: fixed;
  bottom: calc(1.75rem + var(--newsletter-bar-h, 0px));
  right: 1.75rem;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, bottom 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:active {
  border-color: var(--color-pink-strong);
}

.commission-hint {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

.commission-hint a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-pink-strong);
  text-underline-offset: 2px;
}

.loan-hint {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.instagram-link:hover {
  border-bottom-color: var(--color-pink-strong);
}

.instagram-link svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Newsletter-Anmeldung
   ========================================================================== */

.newsletter-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
}

.newsletter-wrap[hidden] {
  display: none;
}

.newsletter-tag {
  position: absolute;
  z-index: 2;
  background: var(--color-pink-strong);
  color: #17181c;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.3);
}

.newsletter-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 1.2rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-ink);
  color: #fff;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 -8px 20px -10px rgba(0, 0, 0, 0.25);
}

.newsletter-bar[hidden] {
  display: none;
}

.newsletter-bar .newsletter-tag {
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
}

.newsletter-bar-txt {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.newsletter-bar-txt b {
  font-size: 0.8rem;
  font-weight: 600;
}

.newsletter-bar-txt span {
  font-size: 0.65rem;
  opacity: 0.75;
}

.newsletter-chev {
  font-size: 0.85rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.newsletter-panel {
  position: relative;
  border-radius: 10px 10px 0 0;
  padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: var(--color-ink);
  color: #fff;
  box-shadow: 0 -12px 30px -10px rgba(0, 0, 0, 0.25);
}

.newsletter-panel[hidden] {
  display: none;
}

.newsletter-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.newsletter-mark {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.newsletter-label {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.newsletter-body {
  font-size: 0.7rem;
  color: #cfcfd3;
  margin: 0.3rem 0 0.6rem;
}

.newsletter-field-row {
  display: flex;
  gap: 0.4rem;
}

.newsletter-field-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-ink);
  padding: 0.6rem 0.65rem;
  font-size: 16px;
  font-family: inherit;
}

.newsletter-field-row input[type="email"]:focus {
  outline: 2px solid var(--color-blue-strong);
  outline-offset: 1px;
}

.newsletter-cta {
  background: #fff;
  color: var(--color-ink);
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.62rem;
  line-height: 1.4;
  color: #cfcfd3;
  margin-top: 0.5rem;
  cursor: pointer;
}

.newsletter-consent a {
  color: #fff;
}

.newsletter-consent input {
  margin-top: 0.15rem;
  accent-color: #fff;
}

.newsletter-dismiss {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: none;
  border: none;
  color: #cfcfd3;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
  z-index: 3;
}

.newsletter-confirmed {
  font-size: 0.78rem;
  color: #fff;
  text-align: center;
  padding: 0.5rem 0;
}

.newsletter-confirmed[hidden],
.newsletter-form[hidden] {
  display: none;
}

/* honeypot: unsichtbar und für echte Nutzer nicht erreichbar */
.newsletter-honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Showroom (Werk im eigenen Raum platzieren)
   ========================================================================== */

.detail-image { position: relative; }

.detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.showroom-entry {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.showroom-trigger-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(23, 24, 28, 0.2);
  transition: transform 0.2s ease;
}

.showroom-entry:hover .showroom-trigger-icon,
.showroom-entry:hover .showroom-label {
  transform: scale(1.04);
}

.showroom-entry:focus-visible {
  outline: 2px solid var(--color-pink-strong);
  outline-offset: 3px;
  border-radius: 999px;
}

.showroom-label {
  display: flex;
  align-items: center;
  height: 38px;
  background: #fff;
  color: var(--color-ink);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  padding: 0 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(23, 24, 28, 0.2);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.modal.modal-wide { max-width: 680px; }

/* Die Showroom-Bühne kann je nach hochgeladenem Foto höher werden als andere
   Modal-Inhalte. Mit align-items:center würde überlaufender Inhalt oben
   abgeschnitten und wäre nicht erreichbar (Scroll-Grenze bei 0) — darum hier
   oben ausgerichtet mit Scroll-Puffer, nur für dieses Modal. */
#showroom-backdrop {
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.showroom-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  color: var(--color-pink-strong);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.showroom-close:hover { border-color: var(--color-pink-strong); transform: rotate(90deg); }

.showroom-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

.showroom-privacy svg { flex-shrink: 0; margin-top: 0.1rem; }

.pre-upload-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  margin: 0 0 1rem;
}

.showroom-tool-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.showroom-upload-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 0.5rem; }
.showroom-upload-btn,
.showroom-tool-controls .btn-secondary { padding: 0.8rem 1.4rem; font-size: 0.82rem; }

.showroom-upload-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

#showroom-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 70vh;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg);
  touch-action: none;
  box-shadow: inset 0 0 0 1px var(--color-line);
}

/* Das eigene Foto setzt per JS ein individuelles aspect-ratio auf #showroom-stage
   (siehe app.js), damit z. B. Hochformat-Fotos komplett sichtbar sind statt
   beschnitten zu werden. object-fit: contain verhindert zusätzlich jedes
   Beschneiden, falls max-height in Extremfällen greift. */
#showroom-room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
#showroom-room-placeholder { position: absolute; inset: 0; }

#showroom-artwork-overlay {
  position: absolute;
  width: 200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  filter: drop-shadow(0 18px 26px rgba(23, 24, 28, 0.35));
  user-select: none;
}

#showroom-artwork-overlay.dragging { cursor: grabbing; }
#showroom-artwork-overlay img { width: 100%; height: auto; pointer-events: none; display: block; }

.showroom-resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-ink);
  cursor: nwse-resize;
}

/* Kurze Hinweis-Banner oben an der Bühne (statt direkt am Punkt/Button,
   damit sie nie mit dem Beispielraum-Hinweis oder der Größenanzeige unten
   kollidieren bzw. abgeschnitten werden). Zwei Varianten teilen sich diese
   Basis: der reine Info-Hinweis zum Skalierungspunkt (#showroom-resize-hint)
   und der anklickbare Kalibrierungs-Hinweis (#showroom-upload-hint), der
   direkt nach dem Hochladen erscheint. Beide verschwinden nach kurzer Zeit
   bzw. bei Benutzung (siehe showroomResizeHint/showroomUploadHint in app.js). */
.showroom-banner-hint {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(23, 24, 28, 0.1);
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.showroom-banner-hint.showroom-banner-hint-fade { opacity: 0; pointer-events: none; }

#showroom-resize-hint {
  color: rgba(23, 24, 28, 0.6);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-line);
  pointer-events: none;
}

/* Anklickbarer Kalibrierungs-Hinweis: deutlich sichtbarer (rosa, wie der
   übrige Akzent auf der Seite) und bewusst auffälliger als der neutrale
   Skalierungs-Hinweis, da das Kalibrieren der wichtigste erste Schritt nach
   dem Hochladen ist, den sonst leicht übersehen wird. */
#showroom-upload-hint {
  color: #6b2e46;
  background: var(--color-pink);
  border: 1px solid var(--color-pink-strong);
  font-weight: 500;
  cursor: pointer;
  max-width: calc(100% - 1.2rem);
}

#showroom-upload-hint:hover,
#showroom-upload-hint:focus-visible {
  background: var(--color-pink-strong);
}

.showroom-stage-hint {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: rgba(23, 24, 28, 0.45);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  pointer-events: none;
  text-align: center;
}

.showroom-tool-footer { display: flex; justify-content: center; margin-top: 1.1rem; }

.showroom-reset-link {
  background: none;
  border: none;
  color: var(--color-ink-soft);
  font-size: 0.78rem;
  text-decoration: underline;
  padding: 0.3rem;
}

/* -- Optionale Maßstab-Kalibrierung -- */

#showroom-calib-layer { position: absolute; inset: 0; pointer-events: none; display: none; }

.showroom-calib-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-pink-strong);
  transform: translate(-50%, -50%);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.showroom-calib-pin.dragging { cursor: grabbing; }

.showroom-calib-line {
  position: absolute;
  height: 2px;
  background: var(--color-pink-strong);
  transform-origin: left center;
  pointer-events: none;
}

.showroom-calib-toggle {
  display: block;
  margin: 0.9rem auto 0;
  background: none;
  border: none;
  color: var(--color-ink-soft);
  font-size: 0.78rem;
  text-decoration: underline;
  padding: 0.3rem;
}

.showroom-calib-toggle[hidden] { display: none; }

.showroom-calib-panel {
  margin-top: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  line-height: 1.6;
}

.showroom-calib-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }

.showroom-calib-row input[type="number"] {
  width: 90px;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: inherit;
  /* 16px verhindert den automatischen Zoom von iOS Safari beim Fokussieren
     (gleiches Muster wie bei .field input und dem Newsletter-Feld). */
  font-size: 16px;
}

.showroom-calib-row input[type="number"].showroom-calib-length-invalid {
  border-color: #c23b3b;
  outline: 2px solid rgba(194, 59, 59, 0.25);
}

.showroom-calib-row span { font-size: 0.8rem; }

.showroom-calib-row .btn-primary,
.showroom-calib-row .btn-secondary { padding: 0.55rem 1rem; font-size: 0.76rem; }

.showroom-calib-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--color-ink);
}

.showroom-calib-badge[hidden] { display: none; }

.showroom-calib-badge button {
  background: none;
  border: none;
  color: var(--color-ink-soft);
  text-decoration: underline;
  font-size: 0.76rem;
  padding: 0;
}

.showroom-size-readout {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  display: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.showroom-size-readout.visible { display: block; }

/* Wird erreicht, wenn die eingestellte Größe der tatsächlichen Werkgröße
   entspricht (siehe showroomUpdateSizeReadout in app.js). */
.showroom-size-readout.showroom-size-readout--match {
  background: var(--color-pink);
  border-color: var(--color-pink-strong);
  color: #6b2e46;
  font-weight: 500;
}

@media (max-width: 560px) {
  .modal.modal-wide { padding: 1.75rem 1.25rem; }
  .showroom-tool-controls { flex-direction: column; align-items: stretch; }
  .showroom-tool-controls button { width: 100%; }
}
