/* cam.css - Modernes, helles Design für die Webcam-Seite */

/* Grundlegende Reset- und Basisstile */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header-Stile */
header {
  text-align: center;
  padding: 2rem 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
}

/* Abschnitts-Stile */
section {
  margin-bottom: 2.5rem;
}

h2,
h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-description {
  color: #7f8c8d;
  margin-bottom: 1rem;
  font-style: italic;
}

hr {
  border: 0;
  height: 1px;
  background: #e0e0e0;
  margin: 2rem 0;
}

/* Webcam-Bilder */
webcam-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 800px; /* Gleiche maximale Breite wie Video */
  margin: 0 auto;
}

.image-container {
  flex: 1 1 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #000; /* Gleicher Hintergrund wie Video */
}

.image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.webcam-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Video-Sektion unverändert */
.video-container {
  display: flex;
  justify-content: center;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

#slowVideo {
  width: 100%;
  height: auto;
}

/* Modal-Stile */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ccc;
}

#caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 18px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Wetter-Sektion */
.weather-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.weather-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grid-Layout für die Karten */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Daten-Anzeige */
.data-display {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 0.5rem;
}

.tank-table {
  width: 10%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tank-table thead tr th {
  border: 1px solid #ddd;
  padding: 12px 8px;
  text-align: left;
  width: 16.66%;
  background-color: #2c3e50;
  color: white;
  font-weight: bold;
  text-align: center;
}

.tank-table tbody tr td {
  border: 1px solid #ddd;
  padding: 12px 8px;
  text-align: left;
  width: 16.66%;
}

.tank-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.tank-table tbody tr:hover {
  background-color: #e9ecef;
}

.tank-table tfoot tr td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  font-size: 0.8em;
  color: #666;
  background-color: #f8f9fa;
}

.tank-table .price {
  text-align: right;
  font-family: "Courier New", monospace;
}

.tank-table .status {
  text-align: center;
}

.footer {
  text-align: center;
  font-size: 0.8em;
  color: #666;
  padding: 10px;
  background-color: #f8f9fa;
}

.price {
  text-align: right;
  font-family: "Courier New", monospace;
}

/* Verbrauch */
.consumption {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

/* Transport-Widget */
.transport-widget {
  min-height: 200px;
}

/* Video-Sektion */
.video-container {
  display: flex;
  justify-content: center;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#slowVideo {
  max-width: 100%;
  height: auto;
}

/* Links-Sektion */
.links-section {
  text-align: center;
}

.links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.link-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
}

.link-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid #e9ecef;
}

footer a {
  color: #3498db;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .webcam-images {
    flex-direction: column;
  }

  .image-container {
    flex: 1 1 100%;
  }

  .grid-layout {
    grid-template-columns: 1fr;
  }

  .links-container {
    flex-direction: column;
    align-items: center;
  }

  .link-btn {
    width: 100%;
    max-width: 250px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 70%;
  }

  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }

  .nav-btn {
    padding: 8px 12px;
    font-size: 18px;
  }
}
.weather-container {
  max-width: 1000px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
}

.weather-header {
  text-align: center;
  margin-bottom: 20px;
}

.weather-header h3 {
  margin-bottom: 5px;
}

.subtitle {
  color: #666;
  font-size: 0.9em;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 2px;
}

.weather-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px;
  text-align: center;
  background: white;
}

.date {
  font-size: 1em;
}

.symbol {
  font-size: 2em;
}

.description {
  font-size: 0.7em;
  color: #666;
  min-height: 20px;
}

.temp-range {
  margin: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.max {
  font-size: 1.1em;
  font-weight: bold;
  color: #e74c3c;
}

.min {
  font-size: 1em;
  color: #3498db;
}

.details {
  font-size: 0.7em;
  color: #666;
}

.details div {
  margin: 3px 0;
}

.error {
  text-align: center;
  color: #e74c3c;
  padding: 20px;
}
