/* =====================================================
   DealKira – Bausteine
   Gemeinsame Styles für Produktlisten und Kategorie-Seiten:
   Hero-Bereich, Seitenkopf, Filter-Button, Produkt-Grid,
   "Noch keine Produkte"-Hinweis.
   Wird nur auf Seiten geladen, die diese Bausteine nutzen.
   Einzelne Seiten können Werte in ihrem eigenen <style>
   überschreiben.
===================================================== */

.hero {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 55px 20px 60px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 18px;
  color: #ccc;
}

.products-section {
  max-width: 1100px;
  margin: 45px auto 70px;
  padding: 0 20px;
}

.products-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.filter-button {
  background: #ffd400;
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.filter-button:hover {
  transform: translateY(-2px);
}

.filter-message {
  display: none;
  background: #fff;
  border-radius: 12px;
  padding: 15px 18px;
  margin-bottom: 22px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  color: #555;
}

.filter-message.show {
  display: block;
}

.products {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
}

.empty-state {
  grid-column: 1 / -1;
  background: white;
  border-radius: 16px;
  padding: 55px 30px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.empty-icon {
  font-size: 65px;
  margin-bottom: 20px;
}

.empty-state h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.empty-state p {
  color: #666;
  font-size: 16px;
}

.hero h1 span {
  color: #ffd400;
}

.page-header {
  background: linear-gradient(135deg,#111 0%,#292929 100%);
  color: white;
  text-align: center;
  padding: 55px 20px;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header h1 span {
  color: #ffd400;
}

.page-header p {
  color: #ddd;
  font-size: 16px;
}

@media (max-width: 800px) {

  .page-header {
    padding: 45px 15px;
  }

  .page-header h1 {
    font-size: 32px;
  }

}

@media (max-width: 550px) {

  .hero {
    padding: 42px 15px 48px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 15px;
  }

  .products-section {
    margin: 35px auto 50px;
    padding: 0 12px;
  }

  .products-top {
    margin-bottom: 18px;
  }

  .filter-button {
    padding: 10px 17px;
    font-size: 14px;
  }

  .products {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .empty-state {
    padding: 45px 15px;
    border-radius: 13px;
  }

  .empty-icon {
    font-size: 50px;
  }

  .empty-state h2 {
    font-size: 20px;
  }

  .empty-state p {
    font-size: 14px;
  }

  .page-header {
    padding: 40px 15px;
  }

  .page-header h1 {
    font-size: 28px;
  }

}


/* =========================
   TEXTSEITEN
   (Impressum, Datenschutz)
========================= */

.textseite {
  overflow-wrap: anywhere;
  max-width: 820px;
  margin: 45px auto 70px;
  padding: 40px 45px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  line-height: 1.65;
}

.textseite h2 {
  font-size: 22px;
  margin: 34px 0 10px;
}

.textseite h2:first-child {
  margin-top: 0;
}

.textseite h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}

.textseite p,
.textseite ul {
  margin-bottom: 12px;
  color: #333;
}

.textseite ul {
  padding-left: 22px;
}

.textseite a {
  color: #111;
  text-decoration: underline;
  text-decoration-color: #ffd400;
  text-decoration-thickness: 2px;
}

.textseite .stand {
  margin-top: 30px;
  color: #777;
  font-size: 14px;
}

/* Platzhalter: vor der Veröffentlichung ersetzen! */
.ausfuellen {
  background: #ffe866;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

@media (max-width: 550px) {

  .textseite {
    margin: 25px 12px 45px;
    padding: 26px 20px;
  }

  .textseite h2 {
    font-size: 19px;
  }

}

/* Datenschutzerklärung (Generator-Text) */

.datenschutz h2 {
  scroll-margin-top: 20px;
}

.datenschutz ul.index {
  columns: 2;
  column-gap: 30px;
}

.datenschutz ul.m-elements li,
.datenschutz ul.glossary li {
  margin-bottom: 8px;
}

.datenschutz .seal {
  margin-top: 30px;
  font-size: 13px;
  color: #777;
}

@media (max-width: 550px) {

  .datenschutz ul.index {
    columns: 1;
  }

}

/* =========================
   PRODUKTKARTEN (kategorie.js)
========================= */

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: .2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,.14);
}

.product-card[hidden] {
  display: none;
}

.product-card-image {
  height: 180px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-image .no-image {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #f3f3f3;
  color: #999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 36px;
}

.product-card-image .no-image span {
  font-size: 13px;
  font-weight: 700;
}

.product-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-brand {
  font-size: 13px;
  font-weight: 700;
  color: #777;
  margin-bottom: 6px;
}

.product-card-body h2 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.product-card-price {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.product-card-button {
  margin-top: auto;
  text-align: center;
  padding: 12px 14px;
  background: #ffd400;
  color: #111;
  text-decoration: none;
  border-radius: 9px;
  font-weight: 700;
  transition: .2s;
}

.product-card-button:hover {
  background: #111;
  color: #ffd400;
}

.ad-mark {
  margin-left: 2px;
  font-weight: 400;
}

.affiliate-note {
  margin-top: 18px;
  font-size: 13px;
  color: #777;
  text-align: center;
}

/* Marken-Filter */

.brand-filter-label {
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.brand-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.brand-chip {
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.brand-chip.active {
  background: #111;
  border-color: #111;
  color: #ffd400;
}

@media (max-width: 550px) {

  .products {
    gap: 12px;
  }

  .product-card-image {
    height: 125px;
    padding: 8px;
  }

  .product-card-body {
    padding: 12px;
  }

  .product-card-body h2 {
    font-size: 15px;
  }

  .product-card-button {
    padding: 10px 6px;
    font-size: 13px;
  }

}
