/* Professional gallery styles (responsive, thumbnails, lightbox) */
.gallery-card h2{ text-align:center; margin-top:0; }

.gallery-wrap{
  position:relative;
  max-width:820px;
  margin:0 auto;
  border-radius:14px;
  overflow:hidden;
  background:#111;
  border:1px solid #e6e8ee;
}

#galleryImg{
  display:block;
  width:100%;
  height:380px;
  object-fit:contain;
  background:#111;
  cursor: zoom-in;
}

.gallery-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:10;
  border:0;
  width:44px;
  height:44px;
  border-radius:999px;
  cursor:pointer;
  font-size:28px;
  line-height:44px;
  background:rgba(0,0,0,.55);
  color:#fff;
  user-select:none;
}
.gallery-btn:hover{ background:rgba(0,0,0,.78); }
.gallery-btn.left{ left:10px; }
.gallery-btn.right{ right:10px; }

.gallery-meta{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:10px;
  color:#555;
  font-size:12px;
}

.gallery-thumbs{
  max-width:820px;
  margin:10px auto 0;
  display:flex;
  gap:10px;
  overflow:auto;
  padding:6px 2px 2px;
  scrollbar-width:thin;
}

.gallery-thumbs button{
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  border-radius:10px;
  flex:0 0 auto;
  outline:none;
}
.gallery-thumbs img{
  width:86px;
  height:60px;
  object-fit:cover;
  border-radius:10px;
  border:2px solid transparent;
  display:block;
  background:#eee;
}
.gallery-thumbs button[aria-current="true"] img{
  border-color:#111;
}

@media (max-width:720px){
  #galleryImg{ height:250px; }
  .gallery-wrap{ max-width:100%; }
  .gallery-thumbs{ max-width:100%; }
  .gallery-thumbs img{ width:74px; height:52px; }
}

/* Lightbox */
#lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:16px;
}
#lightbox.open{ display:flex; }
#lightboxImg{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:14px;
  box-shadow:0 8px 40px rgba(0,0,0,.35);
  cursor: zoom-out;
}
.lb-top{
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:#ddd;
  font-size:12px;
  pointer-events:none;
}
.lb-top .pill{
  pointer-events:auto;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  padding:6px 10px;
  border-radius:999px;
}
.lb-close{
  pointer-events:auto;
  border:0;
  width:40px;
  height:40px;
  border-radius:999px;
  cursor:pointer;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:20px;
  line-height:40px;
}
.lb-close:hover{ background:rgba(255,255,255,.2); }

.lb-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:10;
  border:0;
  width:48px;
  height:48px;
  border-radius:999px;
  cursor:pointer;
  font-size:30px;
  line-height:48px;
  background:rgba(255,255,255,.14);
  color:#fff;
  user-select:none;
}
.lb-btn:hover{ background:rgba(255,255,255,.22); }
.lb-btn.left{ left:14px; }
.lb-btn.right{ right:14px; }
/* ===== Formular: Mobile-Hinweis warum nicht absendbar ===== */
.form-hint{
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.35;
}
.form-hint.is-error{
  color: #b00;
  font-weight: 600;
}


/* Form status / warnings (under submit button) */
.form-status{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
}
.form-status ul{
  margin: 8px 0 0 18px;
  padding: 0;
}
.form-status.is-error{
  border-color: rgba(176,0,0,.35);
  background: rgba(176,0,0,.08);
}
.form-status.is-ok{
  border-color: rgba(0,140,0,.25);
  background: rgba(0,140,0,.08);
}

/* Optional: Invalid-Felder sichtbar machen */
form input:invalid, form textarea:invalid, form select:invalid{
  border-color: rgba(176,0,0,.6);
  outline-color: rgba(176,0,0,.35);
}


/* Hide empty status box (works with novalidate flow) */
.form-status:empty{ display:none; }
