body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f9;
  color: #333;
}

/* Navigation */
.navbar {
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.nav-links a,
.dropdown-toggle {
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  display: block;
  cursor: pointer;
}
.nav-links a:hover,
.dropdown-toggle:hover {
  background-color: #34495e;
}
.dropdown { position: relative; }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #34495e;
  top: 100%;
  left: 0;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
}
.dropdown-content a {
  color: white;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
}
.dropdown-content a:hover { background-color: #3c5d7e; }
.dropdown.active .dropdown-content { display: block; }

header {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
  line-height: 1.7;
}
.content h2 {
  color: #2c3e50;
  margin-top: 30px;
}

.firm-list {
  list-style: none;
  padding: 0;
}
.firm-list li {
  background: white;
  margin: 10px 0;
  padding: 15px;
  border-left: 5px solid #2c3e50;
  border-radius: 5px;
}

/* Kartenübersicht */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.map-card {
  background: white;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.map-card:hover {
  transform: scale(1.03);
}
.map-card img {
  max-width: 100%;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.map-card h3 {
  margin-top: 10px;
  font-size: 1.1em;
  color: #2c3e50;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.8);
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 3000;
}
.zoom-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: grab;
}
.zoom-container img {
  transform-origin: center center;
  transition: transform 0.1s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Live-Karte */
.map-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
iframe {
  border: none;
  width: 100%;
  flex: 1;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background-color: #eee;
  margin-top: 40px;
  font-size: 0.9em;
}

/* Hinweise */
.notice {
  background-color: #ffe4e1;
  border: 1px solid #ff7f7f;
  padding: 15px;
  margin-top: 20px;
  border-radius: 6px;
  font-weight: bold;
  color: #b22222;
}

/* Responsive Navigation */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }
  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
  }
}

/* Buttons für Firmenlinks */
.button-container {
  text-align: center;
  margin-top: 30px;
}
.firm-button {
  display: inline-block;
  margin: 10px;
  padding: 12px 20px;
  background-color: #2c3e50;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.firm-button:hover {
  background-color: #34495e;
  transform: scale(1.05);
}

/* Stadtkarten-Selector und Grid */
.selectors {
  text-align: center;
  margin-bottom: 20px;
}
.selectors label {
  margin-right: 10px;
  font-weight: bold;
}
#stateSelect {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Grid für Stadtkarten */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Karten-Boxen für Städte */
.city-card {
  background: white;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.city-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.city-card img {
  max-width: 100%;
  border-radius: 6px;
}
.city-card h3 {
  margin-top: 10px;
  font-size: 1.1em;
  color: #2c3e50;
}

/* Live-Karte Vollbild fix */
html, body {
  height: 100%;
}

.map-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 200px); /* 100% der Viewport-Höhe minus Header/Footer */
  margin-top: 20px;
}

.map-container iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}
