/* Grundlayout */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #08111f, #111827);
  color: white;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px 50px;
  text-align: center;
}

/* Haupttitel */
h1 {
  font-size: 72px;
  color: #6ec6ff;
  margin: 20px 0 10px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

/* Disclaimer */
.disclaimer {
  color: #aaa;
  margin-bottom: 50px;
  font-size: 14px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* Kategorien auf Startseite */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
}

.card {
  background: #1b2433;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.card:hover {
  transform: translateY(-8px) scale(1.05);
  background: #263248;
  box-shadow: 0 6px 18px rgba(0,0,0,0.7);
}

.card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.08);
}

.card span {
  display: block;
  padding: 16px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

/* Back Button */
.back {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  background: #263248;
  color: white;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: bold;
  transition: 0.2s;
}

.back:hover {
  background: #34507a;
}

/* Items in Kategorie-Seiten: direkt nebeneinander, quadratisch, wie Kategorie-Karten */
.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, 180px); /* feste Breite pro Item */
  gap: 25px; /* Abstand zwischen Items */
  justify-content: start; /* Items starten ganz links */
}

.items .item {
  background: #1b2433;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  width: 180px;
  text-align: center;
}

.items .item img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.items .item h2 {
  padding: 16px 0;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.items .item:hover {
  transform: translateY(-8px) scale(1.05);
  background: #263248;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.items .item:hover img {
  transform: scale(1.08);
}

/* Detailseiten */
.detail-image {
  display: block;
  width: 400px;
  max-width: 100%;
  margin: 30px auto 0;
  border-radius: 20px;
}

.detail-text {
  text-align: center;
  margin-top: 25px;
  color: #ccc;
  font-size: 20px;
}

/* Suchleiste */
.search-bar {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 20px auto 40px;
  padding: 14px 18px;
  border-radius: 16px;
  border: none;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s ease;
}

.search-bar:focus {
  outline: none;
  box-shadow: 0 0 12px #6ec6ff;
}

/* Responsive */
@media (max-width: 700px) {
  h1 {
    font-size: 64px;
  }

  .card span {
    font-size: 18px;
  }

  .categories {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .items {
    grid-template-columns: 1fr; /* auf Handy alles in einer Spalte */
    gap: 16px;
    justify-content: center;
  }

  .items .item {
    width: 80%; /* responsive Breite */
  }

  .items .item img {
    width: 100%;
    height: auto; /* Höhe automatisch für Mobile */
  }
}