/* =====================================================
   WEBCAM THUMBNAILS
   - volle Breite
   - 4:3
   - grüne Lupe
   ===================================================== */

.cameraModule .webcamThumbnail{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  cursor: pointer;
}

.cameraModule .webcamThumbnail img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   OVERLAY – GRÜNE LUPE
   =============================== */

.cameraModule .overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.35;                 /* Mobile: dezent sichtbar */
  transition: opacity .2s ease;
}

/* Desktop: nur beim Hover */
@media (hover: hover) and (pointer: fine){
  .cameraModule .overlay{ opacity: 0; }
  .cameraModule .webcamThumbnail:hover .overlay{ opacity: 1; }
}

/* Grüner Kreis */
.cameraModule .overlay::before{
  content:"";
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(125,183,19,0.90);   /* CI-Grün */
  border: 2px solid rgba(255,255,255,0.70);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Lupe (weiß, SVG inline) */
.cameraModule .overlay::after{
  content:"";
  position:absolute;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

/* Offline-Fallback */
.cameraModule .webcamThumbnail.is-offline img{
  opacity: 0.25;
  filter: grayscale(1);
}

.cameraModule .webcamThumbnail.is-offline::after{
  content: "Offline";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.45);
}


/* =====================================================
   MODAL / LIGHTBOX
   - EINHEITLICH dunkler Hintergrund
   - KEIN hellgrauer Kasten
   - Titel links, Zeit rechts sichtbar
   ===================================================== */

.webcamModal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(0,0,0,0.78);
  padding: 0;
}

.webcamModal.is-open{
  display: grid;
  place-items: center;
}

/* Container bleibt transparent */
.webcamModal .modal-content{
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 100vw;
  max-height: 100vh;
}

/* Bild: maximal & ruhig */
.webcamModal .modalImage{
  width: 100%;
  height: 94vh;
  max-height: 94vh;
  object-fit: contain;
  display: block;
  background: transparent;
  z-index: 1;                 /* wichtig: unter Titel/Meta */
}

/* Close-Button schwebend */
.webcamModal .close{
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10002;
}

.webcamModal .close:hover{
  background: rgba(125,183,19,0.90);
}

/* Titel unten links */
.webcamModal .modalTitle{
  position: fixed;
  left: 20px;
  bottom: 20px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(125,183,19,0.90);
  border: 1px solid rgba(255,255,255,0.25);
  z-index: 10001;
}

/* Zeitstempel unten rechts – garantiert sichtbar */
.webcamModal .modalMeta{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10001;            /* wichtig: über dem Bild */
  pointer-events: none;

  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;

  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.25);
}
/* ===== Timeline Slider ===== */
.timelineSlot{
  display:block;
  width:100%;
  clear:both;
  margin: 8px 0 18px;
}

.timelineWrap{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
}

.timelineBtn{
  flex:0 0 auto;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.75);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:18px;
  line-height:1;
  user-select:none;
}
.timelineBtn{
  flex:0 0 auto;
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.75);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:18px;
  line-height:1;
  user-select:none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.timelineBtn:hover{
  background:#68A94A;
  border-color:#68A94A;
  color:#ffffff;
}

.timelineBtn:disabled{
  opacity:.35;
  cursor:default;
}

.timelineBtn:disabled{ opacity:.35; cursor:default; }

.timelineStrip{
  flex:1 1 auto;
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;

  padding:10px 6px;
  border-top:1px solid rgba(0,0,0,.08);

  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;

  /* wirkt „zentriert“, weil wir links/rechts Luft geben */
  justify-content:flex-start;
}

/* optional: Scrollbar weniger auffällig */
.timelineStrip::-webkit-scrollbar{ height:8px; }
.timelineStrip::-webkit-scrollbar-track{ background:rgba(0,0,0,.06); border-radius:10px; }
.timelineStrip::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.18); border-radius:10px; }

.timelineItem{
  position:relative;
  flex:0 0 auto;

  width:92px;            /* 4 passen gut in deine Kartenbreite */
  max-width:92px;

  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(255,255,255,.65);
  padding:6px;

  cursor:pointer;
  outline:none;

  scroll-snap-align:center;
}

.timelineItem:focus{
  box-shadow:0 0 0 3px rgba(125,183,19,.35);
}

.timelineItem img{
  width:100%;
  height:54px;
  object-fit:cover;
  border-radius:10px;
  display:block;
}

/* Uhrzeit Overlay */
.timelineItem::after{
  content: attr(data-time);
  position:absolute;
  left:10px;
  bottom:10px;

  padding:3px 7px;
  font-size:11px;
  font-weight:700;

  border-radius:10px;
  background:rgba(0,0,0,.65);
  color:#fff;

  opacity:0;
  transform:translateY(2px);
  transition:opacity .15s ease, transform .15s ease;
  pointer-events:none;
}
.timelineItem:hover::after,
.timelineItem:focus::after{
  opacity:1;
  transform:translateY(0);
}
@media (hover:none){
  .timelineItem::after{ opacity:1; transform:none; }
}

.timelineStatus{
  margin-top:6px;
  font-size:12px;
  opacity:.85;
  padding:8px 10px;
  border-radius:12px;
  border:1px dashed rgba(0,0,0,.25);
  background:rgba(255,255,255,.55);
}
/* Footer-Grafik sauber skalieren (Mobile & Desktop) */
.footer-graphic img{
  display: block;
  width: 100%;
  height: auto;
}
/* Marktplatz (Kump) als OFFLINE markieren */
.cameraModule.offline .webcamThumbnail{
  position: relative;
  pointer-events: none;              /* optional: nicht klickbar */
}

.cameraModule.offline .webcamThumbnail img{
  filter: grayscale(100%) brightness(0.6);
}

/* dunkler Schleier */
.cameraModule.offline .webcamThumbnail::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 3;
}

/* Text */
.cameraModule.offline .webcamThumbnail::after{
  content: "📷 Kamera derzeit offline";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  z-index: 4;
}
/* ===== Kontaktformular optisch hervorheben ===== */

/* Formular-Container */
.com-contact form {
  background: #f4f8f4;              /* sehr helles Grün/Grau */
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #d6e4d6;
}

/* Eingabefelder */
.com-contact input[type="text"],
.com-contact input[type="email"],
.com-contact textarea {
  background: #ffffff;
  border: 1px solid #b7cbb7;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
}

/* Fokus (wenn man ins Feld klickt) */
.com-contact input:focus,
.com-contact textarea:focus {
  outline: none;
  border-color: #6fa86f;
  box-shadow: 0 0 0 2px rgba(111,168,111,0.2);
}

/* Labels */
.com-contact label {
  font-weight: 500;
  color: #3b5f3b;
}

/* Absenden-Button */
.com-contact button[type="submit"],
.com-contact .btn-primary {
  background-color: #6fa86f;
  border-color: #6fa86f;
  color: #ffffff;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  font-size: 1rem;
}

/* Hover */
.com-contact button[type="submit"]:hover {
  background-color: #5e965e;
  border-color: #5e965e;
}
/* ==================================================
   Webcam Hallenberg – Danke-Seite
   ================================================== */

.cam-thanks{
  max-width: 720px;
  margin: 4rem auto;
  padding: 3rem 2.5rem;
  background: #f4f8f4;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}

/* Icon */
.cam-thanks-icon{
  margin-bottom: 1.5rem;
}

.cam-check{
  width: 110px;
  height: 110px;
}

.cam-check-circle{
  fill: none;
  stroke: #6fa86f;
  stroke-width: 6;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  animation: cam-circle 0.8s ease-out forwards;
}

.cam-check-mark{
  fill: none;
  stroke: #6fa86f;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: cam-check 0.4s ease-out forwards;
  animation-delay: 0.6s;
}

/* Text */
.cam-thanks h1{
  margin-top: 1rem;
  font-size: 2rem;
  letter-spacing: .08em;
  color: #2f4f2f;
}

.cam-thanks-text{
  margin-top: 1rem;
  font-size: 1.05rem;
  color: #3f5f3f;
}

.cam-redirect{
  margin-top: 1.3rem;
  font-size: 0.95rem;
  color: #5f6f5f;
}

/* Button */
.cam-btn-home{
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.75rem 2.2rem;
  border-radius: 30px;
  background: #6fa86f;
  color: #fff;
  font-weight: 600;
  text-decoration: none !important;
}

.cam-btn-home:hover{
  background: #5e965e;
}

/* Animationen */
@keyframes cam-circle{
  to { stroke-dashoffset: 0; }
}

@keyframes cam-check{
  to { stroke-dashoffset: 0; }
}
