/* Grundlegendes Design */
body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #fafafa;
  color: #222;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

/* Überschrift */
h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Suchfeld */
#search {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: 0.2s;
}

#search:focus {
  outline: none;
  border-color: #0078d7;
  box-shadow: 0 0 4px rgba(0,120,215,0.4);
}

/* Kartenraster */
#karten-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Einzelne Karte */
section {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Karteninhalt */
section h2 {
  font-size: 1.2rem;
  margin-top: 0;
  color: #333;
}

section img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  display: block;
  background-color: #eee;
}

/* Text */
section p {
  font-size: 0.95rem;
  line-height: 1.4;
}

section a {
  color: #0078d7;
  text-decoration: none;
}

section a:hover {
  text-decoration: underline;
}

/* Mobilfreundlich */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  #search {
    width: 100%;
  }
}
