body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

p {
  line-height: 24px;
  font-weight: 200;
  font-size: 18px;
}

#app {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 58px);
}
#sidebar {
  padding-right: 12px;
  border: none;
  overflow: auto;
}
#map {
  height: calc(60vh - 58px);
}
.list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin: 4px 0;
  border: none;
  border-bottom: 1px solid #2e2e2e;
  background: #fff;
  border-radius: 0;
  cursor: pointer;
  font-size: 17px;
  margin-bottom: 38px;
}
.list button:hover {
  border-color: #94a3b8;
}

.measure-color-icon {
  border-radius: 50%;
  background-color: #2e2e2e;
  display: block;
  width: 17px;
  height: 17px;
  margin-right: 10px;
}

.measure-group-title {
  display: flex;
}

.measure-group.group-red .measure-color-icon {
  background-color: #b03a72;
}

.measure-group.group-gold .measure-color-icon {
  background-color: #024594;
}

.measure-group.group-green .measure-color-icon {
  background-color: #79a10d;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 50px;
}
@media (min-width: 576px) {
  .container {
    max-width: 620px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 860px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 1140px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1320px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1500px;
  }
} /* vorher 1320px */

/* ——— Sidebar leicht verbreitern auf Desktop ——— */
@media (min-width: 992px) {
  #app {
    grid-template-columns: 360px 1fr; /* vorher 320px */
  }
}

#measureList {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 30px;
  margin-right: 20px;
}

@media (max-width: 1024px) {
  #measureList {
    grid-template-columns: 1fr 1fr; /* vorher 320px */
  }
}

@media (max-width: 960px) {
  #measureList {
    grid-template-columns: 1fr; /* vorher 320px */
  }
}

@media (max-width: 960px) {
  #app {
    grid-template-columns: 1fr;
  }
  #map {
    height: 60vh;
  }
}
