* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #F5F5F5;
  color: #212121;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: #2E7D32;
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.15);
}

.topbar-title {
  font-size: 20px;
  font-weight: bold;
}

.topbar-user {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hidden {
  display: none !important;
}

.view {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.view.scrollable {
  overflow-y: auto;
  display: block;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.page h2 {
  color: #1B5E20;
  margin-top: 0;
}

.page h3 {
  color: #2E7D32;
  margin-bottom: 4px;
}

.page p {
  margin-top: 0;
  line-height: 1.5;
}

/* Seitenleiste */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 20;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: white;
  z-index: 30;
  box-shadow: 2px 0 16px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.sidebar.hidden {
  display: flex !important;
  transform: translateX(-105%);
}

.sidebar-overlay.hidden {
  display: none;
}

.sidebar-header {
  background: #2E7D32;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header .sidebar-title {
  font-size: 18px;
  font-weight: bold;
}

.sidebar-user {
  padding: 14px 20px;
  color: #757575;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
}

.sidebar-nav li {
  padding: 14px 20px;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #212121;
}

.sidebar-nav li:hover {
  background: #F5F5F5;
}

.nav-icon {
  font-size: 18px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #eee;
}

.btn-outline-dark {
  background: transparent;
  border: 1px solid #C62828;
  color: #C62828;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-outline-dark:hover {
  background: #FFEBEE;
}

.centered {
  align-items: center;
  justify-content: center;
}

.card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  width: 360px;
  max-width: 90vw;
}

.card h2 {
  margin-top: 0;
  color: #1B5E20;
}

.card input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  background: #2E7D32;
  color: white;
}

.btn-primary:hover {
  background: #1B5E20;
}

.btn-outline {
  background: transparent;
  border: 1px solid white;
  color: white;
  width: auto;
  padding: 6px 12px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

.error {
  color: #C62828;
  font-size: 13px;
}

.hint {
  color: #757575;
  font-size: 12px;
  margin-top: 16px;
  line-height: 1.4;
}

#circleSelect {
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
}

#mapView {
  position: relative;
  width: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

.member-list {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 10px 14px;
  max-width: 280px;
  max-height: 40vh;
  overflow-y: auto;
  font-size: 13px;
}

.member-list h4 {
  margin: 0 0 8px 0;
  color: #1B5E20;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.member-row:last-child {
  border-bottom: none;
}

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2E7D32;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #ccc;
}

.member-name {
  font-weight: bold;
}

.member-activity {
  color: #757575;
  font-size: 12px;
}

.marker-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2E7D32;
  background-size: cover;
  background-position: center;
  border: 3px solid white;
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
  cursor: pointer;
}

.place-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00BCD4;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
