:root{
  --sr-max: 1080px;
  --sr-gutter-left: 0px;
  --sr-line: var(--line, #2a2a2a);
  --sr-accent: var(--accent, #caa55f);
  --sr-thumb-h: 240px;          /* Querformat-Höhe (ggf. 230–260 testen) */
  --sr-thumb-h-portrait: 310px; /* Hochformat-Höhe */
}

/* Back Button */
.back-button{
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 9999;
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid var(--sr-accent);
  border-radius: 0 !important;
  color: var(--sr-accent);
  background: transparent;
  text-decoration: none;
}
.back-button:hover{
  background: var(--sr-accent);
  color: #000;
  text-decoration: none;
}

/* Header / Chrome */
.sr-chrome{ width: 100%; }
.sr-chrome-inner{
  max-width: var(--sr-max);
  margin: 0 auto;
  padding: 24px 24px 18px;
  text-align: center;
  padding-left: calc(24px + var(--sr-gutter-left));
}
.sr-title{
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}
.sr-subtitle{
  margin: 10px auto 0;
  opacity: 0.8;
  max-width: 64ch;
  font-size: 1rem;
}

/* Content */
.sr-page{
  max-width: var(--sr-max);
  margin: 0 auto;
  padding: 34px 24px 70px;
  padding-left: calc(24px + var(--sr-gutter-left));
}
.sr-note{
  border: 1px solid var(--sr-line);
  border-radius: 16px;
  padding: 16px;
  opacity: 0.9;
  margin-bottom: 22px;
  text-align: center;
}

/* Grid */
.sr-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 34px;
}

/* Card */
.sr-card{
  min-height: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 14px 14px 16px;
  background: transparent;
  transition: transform .18s ease, border-color .18s ease;
}

.sr-card:hover{
  border-color: rgba(202,165,95,0.65);
  transform: translateY(-3px);
}

/* =====================================
   ShowRoom – Ampel-Legende
===================================== */

.sr-legend{
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 22px auto 0;
  padding-top: 14px;
  flex-wrap: wrap;
  opacity: 0.75;
}

.sr-legend-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #b5b8bd;
  white-space: nowrap;
}

.sr-divider{
  max-width: var(--sr-max);
  margin: 26px auto 34px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );
}


/* nutzt exakt dieselben Punkte wie die Karten */
.sr-legend .sr-dot{
  position: relative;
  right: auto;
  bottom: auto;
  width: 12px;
  height: 12px;
}



/* Dot (Basis) */
.sr-dot{
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  opacity: .95;
  display: block;           /* <<< wichtig, sonst unsichtbar */
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

/* Markt: frei -> grün */
.sr-dot--market{
  background: #2ecc71;
  box-shadow: 0 0 12px rgba(46,204,113,.55);
}
.sr-dot--market:hover{
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(46,204,113,.75);
}

/* Privatbesitz -> gelb */
.sr-dot--private{
  background: #f1c40f;
  box-shadow: 0 0 12px rgba(241,196,15,.50);
}
.sr-dot--private:hover{
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(241,196,15,.70);
}

/* gesperrt/verkauft/reserviert -> rot (optional später) */
.sr-dot--locked{
  background: #e53935;
  box-shadow: 0 0 12px rgba(229,57,53,.55);
}
.sr-dot--locked:hover{
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(229,57,53,.75);
}

/* Thumb */
.sr-thumb{
  margin-top: 10px;   /* <- Wert anpassen (8–18px ist meist sweet spot) */
  flex: 0.6 0.6 auto;   /* nimmt mehr Platz in der Card ein */
  display: block;
  width: 100%;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  background: #0b0b0b;
  transition: transform .18s ease, border-color .18s ease;
}

.sr-thumb:hover{
  transform: translateY(-2px);
  border-color: rgba(202,165,95,0.55);
}

.sr-thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  background: transparent;
}

.sr-thumb.ratio-3-4 img{
  height: 70%;        /* vorher effektiv ~70–75% */
  max-height: 100%;
}

.sr-thumb.ratio-3-4{
  aspect-ratio: 7 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Caption */
.sr-caption{
  padding-top: 6px;  /* war bei dir 10px */
  padding: 10px 4px 0;
  text-align: center;
}
.sr-work-title{
  font-weight: 650;
  font-size: 0.9rem;
  margin: 0 0 6px;
}
.sr-work-meta{
  opacity: 0.8;
  font-size: 0.72rem;
  line-height: 1.35;
}

/* Lightbox */
.sr-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  z-index: 99999;
  padding: 28px;
}
.sr-lightbox.open{ display: grid; place-items: center; }

.sr-lightbox-inner{
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border: 1px solid #222;
  border-radius: 18px;
  background: rgba(10,10,10,0.9);
  padding: 18px;
  display: grid;
  place-items: center;
}
.sr-lightbox img{
  max-width: 100%;
  max-height: calc(88vh - 60px);
  display: block;
  border-radius: 12px;
}

.sr-close{
  position: fixed;
  right: 22px;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.sr-close:hover{
  border-color: rgba(202,165,95,0.55);
}

.sr-noscroll{ overflow: hidden; }

/* Responsive */
@media (max-width: 1100px){
  .sr-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .sr-chrome-inner,
  .sr-page{
    padding-left: 24px;
    padding-right: 24px;
  }
  .sr-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .sr-grid{ grid-template-columns: 1fr; }
  .sr-thumb img{ height: 300px; }
}