body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
  padding: 0 10px;
}

/* Begrüßung */
.welcome-box {
  max-width: 1000px;
  margin: 1rem auto 0.5rem auto;
  background: white;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  line-height: 1.5;

  position: relative; /* wichtig fürs Logo */
}

/* Logo oben rechts in der Welcome-Box */
.welcome-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 90px;
  height: auto;
  border-radius: 10px;
  background: white;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.welcome-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
  padding-right: 110px; /* Platz fürs Logo (Desktop) */
}

/* Buttons */
.floor-buttons {
  max-width: 1000px;
  margin: 0.5rem auto;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.floor-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: #003366;
  color: white;
  font-size: 1rem;
}

.floor-btn.active {
  background: #ff8800;
  color: black;
  font-weight: bold;
}

/* Etagen */
.floor {
  display: none;
  max-width: 1000px;
  margin: 0.5rem auto 1rem auto;
}

.floor.active {
  display: block;
}

.floor-title {
  margin: 0.5rem 0;
  text-align: center;
}

/* Plan */
.plan-container {
  position: relative;
  width: 100%;
}

.raumplan {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Hotspots: durchsichtig + Rand exakt */
.hotspot {
  position: absolute;
  background: rgba(0, 70, 160, 0.06); /* ganz leicht sichtbar */
  border: 4px solid rgba(0, 70, 160, 0.9);
  box-sizing: border-box;
  border-radius: 4px;
}

.hotspot:hover {
  background: rgba(0, 70, 160, 0.1);
  cursor: pointer;
}

/* Info Box */
#info-box {
  max-width: 1000px;
  margin: 1rem auto 2rem auto;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.search-bar {
  max-width: 1000px;
  margin: 0.5rem auto 0.5rem auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-bar input {
  flex: 1;
  min-width: 240px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.search-bar button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #003366;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.search-bar button.secondary {
  background: #666;
}

.search-results {
  max-width: 1000px;
  margin: 0 auto 0.75rem auto;
  background: #fff;
  padding: 0.75rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: none;
}

.search-results .item {
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.search-results .item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hotspot.highlight {
  border-color: rgba(255, 136, 0, 0.95);
  background: rgba(255, 136, 0, 0.12);
}

@media (max-width: 600px) {
  .welcome-logo {
    width: 65px;
    top: 10px;
    right: 10px;
    padding: 5px;
  }

  .welcome-box h2 {
    padding-right: 80px; /* Platz fürs Logo (Handy) */
  }
}

/* Ansicht (Raumplan / Alle Angebote) */
.view {
  display: none;
}
.view.active {
  display: block;
}

.mode-buttons {
  max-width: 1000px;
  margin: 0.75rem auto 0.25rem auto;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.mode-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: #003366;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.mode-btn.active {
  background: #ff8800;
  color: black;
  font-weight: bold;
}

/* Angebotsliste */
.offers-wrap {
  max-width: 1000px;
  margin: 0.5rem auto 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: auto; /* falls es auf kleinen Displays breiter wird */
}

.offers-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.offers-table th,
.offers-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.offers-table thead th {
  position: sticky;
  top: 0;
  background: #fafafa;
}

.offers-table {
  min-width: 450px;
}

.hotspot {
  touch-action: manipulation;
}

@media (max-width: 600px) {
  .floor-btn,
  .mode-btn,
  .search-bar button {
    width: 100%;
  }

  .search-bar input {
    width: 100%;
  }
}
