/* Global */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* Container: max 800px on desktop, full width on mobile */
.container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem 70px; /* bottom padding for fixed nav */
  overflow: auto; /* enables content scroll */
  overscroll-behavior: contain;
}

/* Header */
.pwa-header {
  display: flex;
  align-items: center;
  padding: 0rem;
  background: var(--primary-color);
  color: #fff;
  position: relative;
}
.back-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  margin-right: 0.5rem;
  position: absolute;
  left: 1rem;
}
.header-title {
  font-size: 1.25rem;
  margin: 0 auto;
}
.subtitle {
  font-size: 1rem;
  color: #fff;
  margin: 0.5rem 0 0;
  width: 100%;
  text-align: center;
}

/* Content */
.content {
  padding: 1rem;
  height: calc(100% - 60px - 70px - 2rem); /* Header + bottom-nav + paddings */
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Card base */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  overflow: hidden;
  width: 100%;
}
.card-header {
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}
.card-body {
  padding: 1rem;
}
.empty-state {
  text-align: center;
  color: #666;
}

/* Weather Card */
.weather-card {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
}
.weather-card .card-header {
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  padding: 1rem;
}
.weather-card .card-body {
  display: none;
}

/* Fixiertes Menü (bottom-nav) */
.bottom-nav {
  position: fixed; /* stay bottom */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #3378f9;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  touch-action: none; /* disable swipe */
  overscroll-behavior: none; /* prevent bounce */
  overflow: hidden; /* no scroll */
}
.bottom-nav button {
  background: none;
  border: none;
  color: #000;
  text-align: center;
  cursor: pointer;
  flex-grow: 1;
  padding: 10px 0;
}
.bottom-nav button i {
  display: block;
  font-size: 20px;
}
.bottom-nav button span {
  font-size: 14px;
}
.bottom-nav button.active {
  color: #000;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem 70px;
  }
  .header-title {
    font-size: 1.1rem;
  }
}
/* Kategorie-Header */
    .category-header {
      max-width: 800px;
      margin: 0 auto;
      background-color: #e3007b;
      color: #fff;
      text-align: center;
      padding: 10px;
      font-size: 20px;
      font-weight: bold;
    }