/*Testbilder CSS*/

/* Testbilder-Zeile */
.sr-row-testbilder .sr-imgctrl {
  margin-top: 6px;
  margin-left: 10px;   /* Abstand rechts neben dem Text */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.sr-row-testbilder .sr-help { font-size: 11px; color: #777; margin-top: 4px; }
.sr-btn {
  border: 1px solid #ddd;
  background: #fafafa;
  padding: 2px 8px;
  cursor: pointer;
  border-radius: 4px;
}
.sr-btn:disabled { opacity: .4; cursor: default; }

.sr-cell-testbilder { vertical-align: top; }
.sr-imgslider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f7f7;
  max-height: none !important;
  height: auto !important;

}
.sr-track {
  position: relative;
}
.sr-slide { 
  display: none;
  text-align: center;
  padding: 6px;
}
.sr-slide[aria-hidden="true"] { display: none; }
.sr-slide:not([aria-hidden="true"]) { display: block; }

.sr-imgslide {
  max-width: 100%;
  height: auto;
  display: inline-block;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.sr-noimgs {
  color: #aaa;
  text-align: center;
  padding: 24px 0;
}
.sr-img-placeholder {
  opacity: 0.7;
  filter: grayscale(80%);
  object-fit: cover;
}
.sr-slide.sr-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
  border-radius: 8px;
}
/* Standard: kein Zoom-Cursor beim Platzhalter */
.sr-imgslide {
  cursor: default;
}

/* Zoom-Cursor, wenn ein echtes Bild anklickbar ist (hat data-full) */
.sr-imgslide[data-full] {
  cursor: pointer;
}

/* Wenn Lightbox geöffnet ist – Cursor auf "zoom-out" setzen */
.sr-lightbox-overlay img {
  cursor: pointer;
}
/* --- Overlay --- */
.sr-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* --- Innerer Container --- */
.sr-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

/* --- Bild --- */
.sr-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}
.sr-lightbox-orientationhint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    font-size: 15px;
    display: none; /* am Anfang versteckt */
    z-index: 50;
    animation: sr-hint-fade 1s ease-out;
}

.sr-hint-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

@keyframes sr-hint-fade {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* --- Pfeile links / rechts --- */
.sr-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;

    transition: background 0.2s ease;
}

.sr-lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
}

.sr-lightbox-prev {
    left: -60px;   /* Abstand links vom Bild */
}

.sr-lightbox-next {
    right: -60px;  /* Abstand rechts vom Bild */
}

/* --- Schließen (X) oben rechts --- */
.sr-lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;

    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

/* --- Gerätename unten --- */
.sr-lightbox-devicename {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    width: 100%;
    pointer-events: none; /* Klicks gehen nicht auf Text */
}


/* Gesamte Testbilder-Zelle stabilisieren */
.sr-row-testbilder td.bold {
    height: 75px;                  /* Gesamthöhe fixieren */
    padding: 8px 10px;
    vertical-align: top;
}

/* Bildname in eigene Zeile */
.sr-imglabel {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;

    /* Kein Springen */
    line-height: 1.2;
    max-height: 2.4em;             /* max. zwei Zeilen */
	min-height: 2.4em;
    overflow: hidden;
}

/* Die Steuerleiste darunter */
.sr-imgctrl {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    /* Fixierte Höhe → verhindert Springen */
    height: 24px;
    line-height: 24px;
}

/* 9/16 stabilisieren */
.sr-count {
    display: inline-block;
    min-width: 45px; /* verhindert Breitenänderungen */
    text-align: center;
}

/* Tipp-Zeile darunter */
.sr-help {
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.7;
}
/* mobil: etwas mehr Höhe für Wischgesten */
@media (max-width: 768px) {
  .sr-imgslider { max-height: none; }
}

