/* === Bildgalerie mit Zoom-Vorschau === */
.image-gallery {
  display: flex;
  gap: 10px;
  padding-left: 30px; /* Platz für linkes Bild beim Zoomen */
}

.image-container {
  position: relative;
  overflow: visible;
}

.zoom-preview {
  width: 100px;
  height: auto;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

.zoom-preview:hover {
  transform: scale(2.5);
  transform-origin: left center;
  opacity: 1;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* === Grundlayout === */
body {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 10pt;
  color: #224499;
  background-color: #e0edf5;
  margin: 0;
  padding: 20px;
}

/* === Header & Navigation === */
header {
  background-color: #224499;
  color: #fff;
  padding: 20px;
  text-align: center;
}

nav a {
  margin: 0 10px;
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* === Formularbereich === */
form {
  text-align: center;
  margin: 20px 0;
}

input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
}

button {
  padding: 6px 12px;
  background-color: #224499;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1a3570;
}

/* === Webcam-Boxen === */
.cam-box {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 0 5px #ccc;
  overflow: hidden;
}

.column {
  flex: 1;
  padding: 15px;
  border-right: 1px solid #eee;
}

.column:last-child {
  border-right: none;
}

/* === Bilddarstellung === */
.cam-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* === Statusanzeige === */
.status,
.offline {
  font-weight: bold;
}

.status {
  color: green;
}

.offline {
  color: red;
}

/* === Sternebewertung === */
.stars {
  color: gold;
  font-size: 1.2em;
}

/* === Responsive Anpassung === */
@media (max-width: 768px) {
  .cam-box {
    flex-direction: column;
  }

  .column {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .column:last-child {
    border-bottom: none;
  }
}
