/* =====================================================
   DealKira – Basis
   Gilt für ALLE Seiten: Grundeinstellungen, Kopfzeile,
   Burger-Menü und Fußzeile.
   Änderungen hier wirken sofort auf der ganzen Website.
===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #111;
}

site-header,
site-footer {
  display: block;
}

site-footer {
  margin-top: auto;
}

/* =========================
   HEADER
========================= */

header {
  height: 82px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  position: relative;
  z-index: 1000;
}

/* =========================
   LOGO
========================= */

.logo {
  width: 280px;
  height: 65px;
  display: flex;
  align-items: center;
  overflow: visible;
  position: relative;
}

.logo img {
  height: 320px;
  width: auto;
  max-width: none;
  display: block;
}

/* =========================
   BURGER MENU
========================= */

.menu-button {
  width: 48px;
  height: 48px;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: 0.2s;
}

.menu-button span {
  width: 23px;
  height: 3px;
  background: #ffd400;
  border-radius: 3px;
  transition: 0.2s;
}

.menu-button:hover {
  background: #252525;
  border-color: #ffd400;
}

.menu-button.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   MENU PANEL
========================= */

.menu-panel {
  position: absolute;
  top: 82px;
  right: 6%;
  width: 270px;
  background: #111;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: 0.2s;
}

.menu-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 14px 15px;
  border-radius: 9px;
  font-weight: 700;
  transition: 0.2s;
}

.menu-panel a:hover {
  background: #222;
  color: #ffd400;
}

.menu-icon {
  width: 25px;
  text-align: center;
  font-size: 19px;
}

.menu-divider {
  height: 1px;
  background: #333;
  margin: 8px 5px;
}

/* =========================
   FOOTER
========================= */

footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  line-height: 1.6;
}

footer strong {
  color: #fff;
  font-size: 16px;
}

footer a {
  color: #aaa;
  text-decoration: none;
}

footer a:hover {
  color: #ffd400;
}

.footer-hinweis {
  font-size: 12px;
  color: #777;
  margin: 4px 0;
}

/* =========================
   TABLET
========================= */

@media (max-width: 800px) {

  .logo {
    width: 225px;
  }

  .logo img {
    height: 275px;
  }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 550px) {

  header {
    padding: 0 5%;
  }

  .logo {
    width: 190px;
    height: 50px;
  }

  .logo img {
    height: 235px;
  }

  .menu-panel {
    right: 5%;
    width: 270px;
  }

}

/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 380px) {

  .logo {
    width: 170px;
  }

  .logo img {
    height: 215px;
  }

  .menu-button {
    width: 45px;
    height: 45px;
  }

}

/* =========================
   PRODUKT-PLATZHALTER (ohne Bild)
========================= */

.dk-ph {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f7f6f1 0%, #ecebe4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
}

.dk-ph-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffd400;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dk-ph-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #111;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dk-ph-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #55534a;
  text-align: center;
  line-height: 1.2;
}

.product-detail .product-image .dk-ph .dk-ph-icon {
  width: 96px;
  height: 96px;
}

.product-detail .product-image .dk-ph .dk-ph-icon svg {
  width: 48px;
  height: 48px;
}

/* =========================
   RATGEBER-HINWEIS auf Kategorie-Seiten
========================= */

.ratgeber-hinweis {
  display: block;
  max-width: 1060px;
  margin: 24px auto 0;
  padding: 14px 18px;
  background: #fff8cc;
  border-left: 5px solid #ffd400;
  border-radius: 10px;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  box-sizing: border-box;
}

.ratgeber-hinweis strong { text-decoration: underline; }

@media (max-width: 1140px) {
  .ratgeber-hinweis { margin: 20px 16px 0; }
}


/* =========================
   FAVORITEN-BUTTON (alle Seiten)
========================= */

.dk-fav.favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #111;
  cursor: pointer;
  z-index: 5;
  transition: transform .2s;
}

.dk-fav.favorite-button:hover { transform: scale(1.08); }
.dk-fav.favorite-button.active { color: #e60023; }
.dk-fav.favorite-button:disabled { cursor: wait; opacity: .7; }
.dk-fav.favorite-button:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }

.product-card, .home-deal { position: relative; }

.product-name + .dk-fav-inline { margin: -16px 0 24px; }

/* Großer Merken-Button auf Produktseiten */
.dk-fav.dk-fav-inline {
  position: static;
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  gap: 6px;
  box-shadow: none;
  border: 2px solid #111;
  background: #fff;
}

.dk-fav.dk-fav-inline::after { content: " Merken"; }
.dk-fav.dk-fav-inline.active::after { content: " Gemerkt"; }
.dk-fav.dk-fav-inline:hover { transform: none; background: #fff8cc; }

@media (max-width: 550px) {
  .dk-fav.favorite-button:not(.dk-fav-inline) {
    width: 38px; height: 38px; top: 8px; right: 8px; font-size: 21px;
  }
}

/* Bestpreis auf Produktkarten */
.dk-preis { margin: 2px 0 14px; font-size: 14px; color: #666; line-height: 1.35; }
.dk-preis strong { font-size: 20px; color: #111; margin-left: 2px; }
.dk-preis small { display: block; font-size: 13px; color: #888; margin-top: 2px; }
.dk-preis-leer { font-size: 14px; color: #888; }
.dk-preis-vergleich { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: #666; }
.dk-preis-vergleich li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.dk-preis-vergleich li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-preis-vergleich li span:last-child { white-space: nowrap; }
@media (max-width: 480px) { .dk-preis-vergleich { font-size: 12px; } }
.dk-preis-vergleich li + li { border-top: 1px solid #eee; }
.dk-preis-vergleich .dk-preis-bester { color: #111; font-weight: 600; }

.product-more-button { grid-column: 1 / -1; justify-self: center; margin: 10px auto 0; padding: 12px 26px;
  border: 0; border-radius: 999px; background: #111; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.product-more-button:hover { background: #333; }
