/* === Policie-Page === */
.cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: calc(100dvh - var(--header-height));
  padding: var(--footer-height) 2rem var(--footer-height) 2rem;
  text-align: center;
  box-sizing: border-box;
}

h1 {
  font-size: 2.5em;
  color: var(--text-main);
  margin-bottom: 48px;
  transition: color .5s ease;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.filters select {
  padding: 10px;
  font-size: 1em;
}

.highlight {
  background: var(--brand);
  color: #fff;
  padding: 0 2px;
  border-radius: 2px;
}

/* === Search Bar === */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 64px auto;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  transition: all .5s ease;
  padding: 0; 
}

.search-bar input {
  border: none;
  padding: 15px 20px;
  font-size: 1.1em;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text-main);
  transition: color .5s ease;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 24px;
  width: 100%;
  max-width: 384px;
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .5s ease;
}

.card .icon-container {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .icon-container img {
  width: 64px;
  z-index: 1;
}

.card h2 {
  font-size: 1.5em;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 12px;
  transition: color .5s ease;
}

.card p {
  font-size: 1em;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  transition: color .5s ease;
}

.card .read {
  display: block;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(204, 51, 204, 0.4);
  transition: all .5s ease;
  margin-top: auto;
}

.card .read:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(204, 51, 204, 0.6);
}

/* Responsives Design für kleinere Bildschirme */
@media (max-width: 768px) {
  .cards {
    padding: 2rem; 
    min-height: auto; 
  }

  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 384px;
  }

  .search-bar {
    width: 90%;
  }
}