body {
  font-family: "Bagel Fat One", system-ui;
  font-weight: 400;
  font-style: normal;
  background-color: #D9D9D9;;
  margin: 0;
}

header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 30px;
}

header h1 {
  color: white;
  font-size: 48px;
  font-family: "Bagel Fat One", sans-serif;
  font-weight: 400;
  word-wrap: break-word;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  margin: 0;
}
h4 {
  font-family: "Bagel Fat One", sans-serif;
  font-size: 40px;
  text-align: center;

}

p {
font-family: "Bagel Fat One", sans-serif;
  font-size: 25px;
  text-align: center;
}



main {
  justify-content: center;
  align-items: center;
  min-height: 200px;
  padding: 20px;
}

/* CSS für Quadrate aus Figma */

.variantgelb {
  width: 200px;
  height: 200px;
  background-color: #FBEBBF;
  color: #988244;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}

.variantpink {
  width: 200px;
  height: 200px;
  background-color: #FFC4EE;
  color: #B8539B;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}

.variantorange {
  width: 200px;
  height: 200px;
  background-color: #FFE1C1;
  color: #A27444;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}

.variantblau {
  width: 200px;
  height: 200px;
  background-color: #CAF4F1;
  color: #38918B;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}

.square {
  width: 200px;
  height: 200px;
  text-align: center;
  font-family: "Bagel Fat One";
  font-weight: 400;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  margin: 10px;
  padding: 30px;

}

.graybar {
  width: 200px;
  height: 70px;
  background-color: #B0B0B0;
  color: white;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}

.square_container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Ensures spacing between items */
  align-items: center; /* Aligns items vertically in the center */
  border-radius: 6px;
  margin: 10px;

}

.graphics_container {
  width: 100%;
  height: 400px;
  background-color: #B0B0B0;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  margin: 30px;
}

.graybar_parkhaus {
  width: 200px;
  height: 70px;
  background-color: #B0B0B0;
  color: white;
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
}

.Bild_Parkhaus{
  width: 150px;
  border-radius: 20px;
  align-self: center;
}

.parkhaus_box{
  width: 200px;
  height: 200px;
  text-align: center;
  font-family: "Bagel Fat One";
  font-weight: 400;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  margin: 10px;
  padding: 30px;
}

.parkhaus_container_1 {
  width: 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Ensures spacing between items */
  align-items: center; /* Aligns items vertically in the center */
  border-radius: 6px;
  margin: 30px;

}

.parkhaus_container_2 {
  width: 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Ensures spacing between items */
  align-items: center; /* Aligns items vertically in the center */
  border-radius: 6px;
  margin: 30px;

}

.parkhaus_container_3 {
  width: 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Ensures spacing between items */
  align-items: center; /* Aligns items vertically in the center */
  border-radius: 6px;
  margin: 30px;

}

.parkhaus_container_4 {
  width: 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Ensures spacing between items */
  align-items: center; /* Aligns items vertically in the center */
  border-radius: 6px;
  margin: 30px;

}

/* CSS für Map*/

.map_container {
  margin: 40px auto;
  width: 90%;
  max-width: 1000px;
}

.map_container h2 {
  text-align: center;
  margin-bottom: 10px;
  font-family: 'Bagel Fat One', sans-serif;
}

#map {
  height: 500px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Custom Leaflet Marker Styles */
.custom-parkhaus-marker {
  background: transparent !important;
  border: none !important;
}

.leaflet-popup-content {
  margin: 8px 12px !important;
  line-height: 1.4 !important;
}

.leaflet-popup-content h4 {
  font-family: "Bagel Fat One", sans-serif !important;
  font-size: 16px !important;
  margin: 5px 0 !important;
}

.leaflet-popup-content p {
  font-family: "Bagel Fat One", sans-serif !important;
  font-size: 12px !important;
  margin: 3px 0 !important;
}


.parkhaus_button
{
  background-color: #D9D9D9;
  border: none;
  color: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 12px;
  font-family: "Bagel Fat One", sans-serif;
}


/* Modernes Overlay System */
.overlay {
  display: none; /* Initially hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.overlay-content {
  position: relative;
  background-color: white;
  margin: 5% auto;
  padding: 0;
  width: 90%;
  max-width: 600px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
  max-height: 80vh;
  overflow-y: auto;
}

.overlay-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overlay-header h2 {
  margin: 0;
  font-family: "Bagel Fat One", sans-serif;
  font-size: 24px;
}

.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.overlay-body {
  padding: 30px;
  font-family: "Bagel Fat One", sans-serif;
}

/* Animationen */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    transform: translateY(-50px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

/* Parkhaus-Details Styling */
.parkhaus-detail {
  text-align: center;
}

.parkhaus-detail h3 {
  color: #333;
  margin: 15px 0;
  font-size: 20px;
}

.parkhaus-detail .status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  margin: 10px 0;
}

.status-open {
  background-color: #d4edda;
  color: #155724;
}

.status-closed {
  background-color: #f8d7da;
  color: #721c24;
}

.parkhaus-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}

.stat-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.stat-box h4 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 14px;
}

.stat-box .value {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
}


/***PRobe//


* Button Container Styling */
.button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.chart-button {
  padding: 12px 24px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #333;
  font-family: "Bagel Fat One", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-button:hover {
  background: #f8f9fa;
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.chart-button.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}
/* Parkhaus Selector Styling */
.parkhaus-selector {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 1200px;
  text-align: center;
}

.parkhaus-selector h3 {
  margin-bottom: 15px;
  color: #333;
  font-family: "Bagel Fat One", sans-serif;
  font-size: 18px;
}

.parkhaus-buttons {
  display: flex;
  flex-wrap: wrap;
  font-family: Bagel Fat One, sans-serif;
  gap: 10px;
  justify-content: center;
}

/* Parkhaus-Buttons mit Bildern */
.parkhaus-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #28a745;
  border-radius: 6px;
  background: white;
  color: #28a745;
  font-family: "Bagel Fat One", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.parkhaus-btn img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
}

.parkhaus-btn:hover {
  background: #e8f5e8;
  transform: translateY(-1px);
}

.parkhaus-btn.active {
  background: #28a745;
  color: white;
}
/* Individual View Buttons */
.individual-view-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.view-btn {
  padding: 8px 20px;
  border: 1px solid #6c757d;
  border-radius: 6px;
  background: white;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: #f8f9fa;
  border-color: #495057;
  color: #495057;
}

.view-btn.active {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}
/* Free Places Display */
.free-places-display {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.free-places-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #e8f5e8;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #28a745;
}

.free-places-info .label {
  font-weight: 500;
  color: #333;
}

.free-places-info .value {
  font-size: 20px;
  font-weight: bold;
  color: #28a745;
  min-width: 40px;
  text-align: center;
}

.free-places-info .percentage {
  font-size: 14px;
  color: #666;
  font-style: italic;
}
/* Parkhaus Status Styling */
.parkhaus-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.status-label {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.status-value {
  font-weight: bold;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-open {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-closed {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.free-places-data {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.no-data {
  color: #6c757d;
  font-style: italic;
  text-align: center;
  padding: 10px;
}
/* Chart Container Styling */
.chart-section {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 20px auto;
  max-width: 1200px;
}

.chart-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  transition: all 0.3s ease;
}

.chart-section canvas {
  max-height: 500px;
}
