/* Standorte & Mittel – Frontend */

.os-sm-card{
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.os-sm-filter{
  float: right;
  margin-bottom: 20px;
  width: 200px;
  padding: 12px 14px;
}
.os-sm-filter label{
  float: left;
  display:block;
  font-size:13px;
  opacity:0.85;
  margin-bottom:0px;
}
.os-sm-filter select{
  width:150px;
  float:right;
  padding: 2px;
  min-width: 80px;
  height: 30px;
  line-height: normal;
  background-color: transparent;
  background-image: none;
  border: 0;
  outline: none;
  box-shadow: none;
  appearance: auto;
}
.os-sm-filter select:focus{
  outline: none;
}

.os-sm-grid{
  clear: both;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.os-sm-item{
  cursor:pointer;
  border:0;
  padding:0;
  text-align:left;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.os-sm-item-media{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e8eaed;
  overflow: hidden;
}

.os-sm-item-media .os-sm-thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.os-sm-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #111;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 1px 8px rgba(0,0,0,0.14);
  pointer-events: none;
  text-align: center;
}

.os-sm-badge--slider{
  top: 12px;
  right: 12px;
}

.os-sm-title{
  display: block;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.os-sm-empty{
  clear:both;
  opacity:0.8;
  padding: 10px 0 20px;
}

/* Modal */
.os-sm-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.os-sm-modal.is-open{ display:block; }

.os-sm-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.6);
}

.os-sm-modal-dialog{
  position: relative;
  width: min(980px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  margin: 12px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.os-sm-modal-close{
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  border:0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  padding: 10px 14px;
  cursor:pointer;
  opacity:0.7;
}
.os-sm-modal-close:hover{ opacity:1; }

.os-sm-modal-content{
  padding: 0 18px 18px;
}

.os-sm-modal-loading{
  padding: 20px 0;
  opacity: 0.85;
}

/* Detail */
.os-sm-detail-title{
  font-weight: 800;
  font-size: 20px;
  margin-top: 14px;
}
.os-sm-detail-standort{
  margin-top: 6px;
  opacity: 0.75;
  font-size: 13px;
}
.os-sm-detail-text{
  margin-top: 12px;
  line-height: 1.5;
}

/* Slider */
.os-sm-slider{
  position: relative;
  border-radius: 12px;
  overflow:hidden;
  background: #000;
}
.os-sm-slides{
  display:flex;
  transition: transform 240ms ease;
  will-change: transform;
}
.os-sm-slide{
  min-width: 100%;
}
.os-sm-slide img{
  width:100%;
  height: min(420px, 55vh);
  object-fit: cover;
  display:block;
}

.os-sm-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  cursor:pointer;
  font-size: 26px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.os-sm-prev{ left: 10px; }
.os-sm-next{ right: 10px; }
.os-sm-nav:hover{ background: rgba(255,255,255,0.95); }

.os-sm-dots{
  position:absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display:flex;
  gap: 6px;
  justify-content: center;
  pointer-events: none;
}
.os-sm-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}
.os-sm-dot.is-active{
  background: rgba(255,255,255,0.95);
}

/* Specs table */
.os-sm-specs-title{
  margin-top: 18px;
  font-size: 16px;
}
.os-sm-specs-table{
  width:100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.os-sm-specs-table th,
.os-sm-specs-table td{
  border: 1px solid #e5e5e5;
  padding: 8px 10px;
  font-size: 14px;
}
.os-sm-specs-table th{
  width: 35%;
  background: #f5f5f5;
  text-align: left;
}

@media (max-width: 520px){
  .os-sm-item-media{ aspect-ratio: 5 / 4; }
  .os-sm-modal-content{ padding: 0 12px 14px; }
}
/* --- Fixes: Titelfarbe + Hover --- */
.os-sm-item .os-sm-title{
  color:#111;
  transition: background 120ms ease, color 120ms ease;
}
.os-sm-item:hover .os-sm-title{
  color:#fff;
  background:#111;
}
.os-sm-item.os-sm-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.14);
}

/* --- Fix: Modal mehr Abstand oben/unten --- */
.os-sm-modal-dialog{
  margin: 32px auto;
  max-height: calc(100% - 64px);
}
@media (max-width: 520px){
  .os-sm-modal-dialog{
    margin: 18px auto;
    max-height: calc(100% - 36px);
  }
}

/* --- Standorte Liste --- */
.os-sm-standorte-list{
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.os-sm-standort-row{
  display:flex;
  gap: 20px;
  align-items: stretch;
}
.os-sm-standort-info{
  flex: 1 1 55%;
  padding: 18px 18px 16px;
}
.os-sm-standort-title{
  font-weight: 900;
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 10px 0;
  color:#111;
}
.os-sm-standort-content{
  opacity: 0.92;
  font-size: 16px;
  line-height: 1.55;
}
.os-sm-standort-media{
  flex: 1 1 45%;
  min-height: 220px;
}
.os-sm-standort-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
@media (max-width: 860px){
  .os-sm-standort-row{ flex-direction: column; }
  .os-sm-standort-media{ min-height: 200px; }
  .os-sm-standort-title{ font-size: 28px; }
}

/* --- Team Liste --- */
.os-sm-team-filter{
  width: 200px;
}
.os-sm-team-filter select{
  width: 170px;
}

.os-sm-team-grid{
  clear: both;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 0 30px;
}

.os-sm-team-card{
  overflow: hidden;
}

.os-sm-team-thumb{
  width: 100%;
  height: 200px;
  object-fit: cover;
  display:block;
}
.os-sm-team-thumb--placeholder{
  background: #e9ecef;
}

.os-sm-team-body{
  padding: 14px 16px 16px;
}

.os-sm-team-name{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  color:#111;
  margin-bottom: 8px;
}

.os-sm-team-field{
  font-size: 14px;
  line-height: 1.4;
  margin-top: 6px;
  opacity: 0.95;
}

.os-sm-team-label{
  font-weight: 700;
  opacity: 0.85;
}

.os-sm-team-link{
  text-decoration: none;
  border: 0;
}
.os-sm-team-link:hover{
  text-decoration: underline;
}

@media (max-width: 520px){
  .os-sm-team-filter{ width: 100%; }
  .os-sm-team-filter select{ width: 100%; float: none; }
  .os-sm-team-filter label{ float: none; }
}
