/**
 * Drinkkompass Product Page v5 – Styles
 * Datei: /wp-content/themes/rehub-theme-child/dk-product-page.css
 * Version: 5.1.0
 * Changes:
 *   5.1.0 - Sidebar min-width 260px to prevent text wrapping
 *   5.0.9 - Hero: removed max-width/padding, Elementor controls width
 *   5.0.7 - Target e-con, e-con-full, e-child Flexbox containers,
 *           rh-container, single-product-main-area for transparency
 *   5.0.6 - Elementor containers transparent, widget spacing 20px,
 *           cream background sichtbar zwischen Karten
 *   5.0.5 - Body cream background, section gaps, Poppins enforcement,
 *           font-size alignment with mockup
 *   5.0.4 - FAQ details/summary CSS, Blog-Link Hover, Chevron-Kreis
 *   5.0.0 - Initial release
 */

:root {
  --dk-olive: #7C9A5E;
  --dk-olive-light: #9AB87C;
  --dk-olive-bg: #f0f4eb;
  --dk-terra: #E07F5F;
  --dk-terra-bg: #fef3ee;
  --dk-berry: #A55D7A;
  --dk-berry-bg: #f5edf1;
  --dk-cream: #FAF9F7;
  --dk-anthracite: #2D3436;
  --dk-text: #6a6a6a;
  --dk-text-light: #999;
  --dk-border: #eae7e2;
  --dk-white: #ffffff;
  --dk-radius: 16px;
  --dk-radius-sm: 10px;
  --dk-radius-xs: 6px;
  --dk-shadow: 0 1px 4px rgba(0,0,0,0.04);
  --dk-shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --dk-shadow-hover: 0 8px 30px rgba(0,0,0,0.08);
}

/* ============================
   GLOBAL: Body + Font Override
   ============================ */
/* Target product pages via multiple selectors for reliability */
body.single-product,
body.postid-5797,
body[class*="product_type-"],
body.single-elementor_library,
body:has([data-elementor-type="product"]),
body:has(.dk-hero) {
  background: var(--dk-cream) !important;
}
/* Force ALL containers transparent */
body:has(.dk-hero) .e-con,
body:has(.dk-hero) .e-con-full,
body:has(.dk-hero) .e-con-inner,
body:has(.dk-hero) .e-child,
body:has(.dk-hero) .elementor-element[data-element_type="container"],
body:has(.dk-hero) .elementor-section,
body:has(.dk-hero) .elementor-container,
body:has(.dk-hero) .elementor-column,
body:has(.dk-hero) .elementor-widget-wrap,
body:has(.dk-hero) .elementor-element,
body:has(.dk-hero) .elementor-section-wrap,
body:has(.dk-hero) .site-content,
body:has(.dk-hero) .main-side,
body:has(.dk-hero) #content,
body:has(.dk-hero) .elementor,
body:has(.dk-hero) .rh-container,
body:has(.dk-hero) .rh-content-wrap,
body:has(.dk-hero) .rh-outer-wrap,
body:has(.dk-hero) .wp-block-group {
  background: transparent !important;
  background-color: transparent !important;
}
/* Poppins enforcement for all dk- elements */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
[class*="dk-"] {
  font-family: 'Poppins', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.dk-hero__title,
.dk-section__title,
.dk-tasting__title,
.dk-cta__text h3 {
  font-family: 'Poppins', sans-serif !important;
}

/* ============================
   HERO
   ============================ */
.dk-hero {
  margin: 0 0 4px;
  padding: 0;
}
.dk-hero__card {
  background: var(--dk-white);
  border-radius: var(--dk-radius);
  padding: 32px;
  box-shadow: var(--dk-shadow);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}
.dk-hero__image {
  aspect-ratio: 1/1;
  background: linear-gradient(145deg, #f5f3ef, #ece8e1);
  border-radius: var(--dk-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dk-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dk-hero__placeholder { font-size: 56px; opacity: 0.3; }
.dk-hero__right { display: flex; flex-direction: column; }
.dk-hero__cat {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dk-white);
  background: var(--dk-olive);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
  text-decoration: none;
}
.dk-hero__cat:hover { opacity: 0.9; color: var(--dk-white); }
.dk-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--dk-anthracite);
  line-height: 1.15;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}
.dk-hero__brand {
  font-size: 14px;
  color: var(--dk-text);
  font-weight: 400;
  margin-bottom: 4px;
}
.dk-hero__subtitle {
  font-size: 13px;
  color: var(--dk-text-light);
  margin-bottom: 16px;
}

/* Score Ring (shared) */
.dk-score-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dk-score-ring--lg {
  width: 64px;
  height: 64px;
}
.dk-score-ring__inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dk-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dk-score-ring__inner--lg {
  width: 52px;
  height: 52px;
}
.dk-score-ring__num {
  font-size: 19px;
  font-weight: 800;
  color: var(--dk-anthracite);
  line-height: 1;
}
.dk-score-ring__num--lg {
  font-size: 22px;
}
.dk-score-ring__max {
  font-size: 9px;
  color: var(--dk-text-light);
  font-weight: 500;
}

/* Hero Score Block */
.dk-hero__score-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--dk-cream);
  border-radius: var(--dk-radius-sm);
  margin-bottom: 20px;
}
.dk-hero__score-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dk-anthracite);
  line-height: 1.3;
}
.dk-hero__score-sub {
  font-size: 11.5px;
  color: var(--dk-text-light);
}
.dk-hero__stars {
  margin-left: auto;
  font-size: 16px;
  letter-spacing: 1px;
}

/* Quick Facts */
.dk-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.dk-fact {
  background: var(--dk-cream);
  border-radius: var(--dk-radius-xs);
  padding: 10px 14px;
}
.dk-fact__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--dk-text-light);
  font-weight: 500;
  margin-bottom: 1px;
}
.dk-fact__val {
  font-size: 14px;
  font-weight: 700;
  color: var(--dk-anthracite);
}
.dk-fact__unit {
  font-weight: 400;
  font-size: 10px;
  color: var(--dk-text);
}

/* Steckbrief */
.dk-steckbrief {
  border-top: 1px solid var(--dk-border);
  padding-top: 16px;
  margin-top: auto;
}
.dk-steckbrief__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--dk-text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.dk-steckbrief__table { width: 100%; font-size: 13px; border-collapse: collapse; }
.dk-steckbrief__table tr { border-bottom: 1px solid #f3f0ec; }
.dk-steckbrief__table td { padding: 5px 0; vertical-align: top; }
.dk-steckbrief__table td:first-child { color: var(--dk-text); width: 110px; }
.dk-steckbrief__table td:last-child { color: var(--dk-anthracite); font-weight: 500; }

/* ============================
   BADGES (global component)
   ============================ */
.dk-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dk-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.dk-badge__icon { font-size: 11px; }
.dk-badge--bio { background: var(--dk-olive-bg); color: var(--dk-olive); }
.dk-badge--vegan { background: var(--dk-berry-bg); color: var(--dk-berry); }
.dk-badge--fairtrade { background: var(--dk-terra-bg); color: var(--dk-terra); }
.dk-badge--sm {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 4px;
  gap: 3px;
}
.dk-badge--sm .dk-badge__icon { font-size: 9px; }

/* ============================
   SECTIONS (shared)
   ============================ */
.dk-section {
  background: var(--dk-white);
  border-radius: var(--dk-radius);
  box-shadow: var(--dk-shadow);
  overflow: hidden;
  margin-bottom: 0;
}
.dk-section--pad { padding: 28px; }
.dk-section__title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dk-anthracite);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

/* Tasting section is also a dk-section but has no --pad */
.dk-tasting {
  margin-bottom: 0;
}

/* Force spacing between Elementor HTML widgets on product page */
body:has(.dk-hero) .elementor-widget-html {
  margin-bottom: 20px !important;
}
body:has(.dk-hero) .elementor-widget-html:last-child {
  margin-bottom: 0 !important;
}

/* ============================
   TASTING NOTES
   ============================ */
.dk-tasting__head {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dk-border);
}
.dk-tasting__title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dk-anthracite);
  margin: 0;
}
.dk-tasting__sub {
  font-size: 12px;
  color: var(--dk-text-light);
  margin-top: 2px;
}
.dk-tasting__bars {
  padding: 22px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dk-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 36px;
  align-items: center;
  gap: 12px;
}
.dk-bar-row__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dk-anthracite);
}
.dk-bar-row__weight {
  font-size: 9px;
  color: var(--dk-text-light);
  font-weight: 400;
  margin-left: 4px;
}
.dk-bar-row__track {
  height: 8px;
  background: var(--dk-cream);
  border-radius: 4px;
  overflow: hidden;
}
.dk-bar-row__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.dk-bar-row__val {
  font-size: 14px;
  font-weight: 700;
  color: var(--dk-anthracite);
  text-align: right;
}
.dk-bar-row__fill--taste      { background: var(--dk-olive); }
.dk-bar-row__fill--mouthfeel  { background: var(--dk-terra); }
.dk-bar-row__fill--overall    { background: var(--dk-berry); }
.dk-bar-row__fill--smell      { background: #8E7D64; }
.dk-bar-row__fill--appearance { background: #6B9BD2; }

/* Pros / Cons */
.dk-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--dk-border);
}
.dk-proscons__col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.dk-proscons__col--pro h4 { color: var(--dk-olive); }
.dk-proscons__col--con h4 { color: var(--dk-terra); }
.dk-proscons__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.dk-proscons__col li {
  font-size: 13px;
  color: var(--dk-anthracite);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.dk-proscons__col--pro li::before { content: "+"; position: absolute; left: 0; color: var(--dk-olive); font-weight: 700; }
.dk-proscons__col--con li::before { content: "\2013"; position: absolute; left: 0; color: var(--dk-terra); font-weight: 700; }

.dk-tasting__footer {
  padding: 0 28px 14px;
  font-size: 11px;
  color: var(--dk-text-light);
}
.dk-tasting__footer strong { color: var(--dk-anthracite); font-weight: 600; }

/* ============================
   EINORDNUNG
   ============================ */
.dk-einordnung {
  border-left: 3px solid var(--dk-olive);
  padding-left: 20px;
}
.dk-einordnung p {
  font-size: 14px;
  color: var(--dk-anthracite);
  margin-bottom: 10px;
  line-height: 1.75;
}
.dk-einordnung p:last-child { margin-bottom: 0; }

/* ============================
   NUTRITION TABLE
   ============================ */
.dk-ntable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dk-ntable thead th {
  background: var(--dk-olive-bg);
  color: var(--dk-anthracite);
  font-weight: 600;
  text-align: left;
  padding: 8px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dk-ntable td {
  padding: 8px 14px;
  border-bottom: 1px solid #f3f0ec;
}
.dk-ntable__hl td {
  background: var(--dk-terra-bg);
  font-weight: 600;
  color: var(--dk-terra);
}

/* ============================
   CTA BAR
   ============================ */
.dk-cta {
  background: linear-gradient(135deg, var(--dk-berry) 0%, #8a4a65 100%);
  border-radius: var(--dk-radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
}
.dk-cta__text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dk-white);
  margin-bottom: 3px;
}
.dk-cta__text p { font-size: 13px; color: rgba(255,255,255,0.8); margin: 0; }
.dk-cta__btn {
  background: var(--dk-white);
  color: var(--dk-berry);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.dk-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); color: var(--dk-berry); }

/* ============================
   SIDEBAR
   ============================ */
.dk-sb-card {
  background: var(--dk-white);
  border-radius: var(--dk-radius);
  padding: 20px;
  box-shadow: var(--dk-shadow);
  margin-bottom: 16px;
  min-width: 260px;
}
.dk-sb-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dk-anthracite);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dk-olive-bg);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dk-sb-card__icon { font-size: 14px; }
.dk-blick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f2ee;
  font-size: 13px;
}
.dk-blick:last-child { border-bottom: none; }
.dk-blick__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dk-blick__dot--green { background: var(--dk-olive); }
.dk-blick__dot--orange { background: var(--dk-terra); }
.dk-blick__dot--berry { background: var(--dk-berry); }
.dk-blick__key { color: var(--dk-text-light); width: 72px; flex-shrink: 0; font-size: 12px; }
.dk-blick__val { color: var(--dk-anthracite); font-weight: 600; font-size: 12.5px; }

.dk-cat-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--dk-cream);
  border-radius: var(--dk-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.dk-cat-link:hover { box-shadow: var(--dk-shadow-md); }
.dk-cat-link__icon {
  width: 40px;
  height: 40px;
  background: var(--dk-olive-bg);
  border-radius: var(--dk-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.dk-cat-link__name { font-weight: 600; color: var(--dk-anthracite); font-size: 13px; }
.dk-cat-link__count { font-size: 11px; color: var(--dk-text-light); }

/* Blog links in sidebar */
.dk-blog-list { display: flex; flex-direction: column; }
.dk-blog-link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--dk-radius-xs);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.dk-blog-link:last-child { border-bottom: none; }
.dk-blog-link:hover { background: var(--dk-cream); }
.dk-blog-link__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dk-anthracite);
  line-height: 1.35;
  margin-bottom: 2px;
}
.dk-blog-link__date {
  font-size: 10.5px;
  color: var(--dk-text-light);
}

/* ============================
   FAQ (v5.0.4 - details/summary)
   ============================ */
.dk-faq__item {
  border-bottom: 1px solid var(--dk-border);
}
.dk-faq__item:last-child { border-bottom: none; }
.dk-faq__q {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--dk-anthracite);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  user-select: none;
}
.dk-faq__q::-webkit-details-marker { display: none; }
.dk-faq__q::marker { display: none; content: ''; }
.dk-faq__q:hover { color: var(--dk-olive); }
.dk-faq__chevron {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dk-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--dk-olive);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.dk-faq__item[open] .dk-faq__chevron { transform: rotate(90deg); }
.dk-faq__a {
  font-size: 13px;
  color: var(--dk-text);
  line-height: 1.7;
  padding: 0 0 14px 28px;
}

/* ============================
   PRODUCT CARD (global component)
   ============================ */
.product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.product-card {
  background: var(--dk-white);
  border: 1px solid var(--dk-border);
  border-radius: var(--dk-radius-sm);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--dk-shadow-hover); transform: translateY(-2px); }
.product-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.product-card__score {
  font-size: 14px;
  font-weight: 700;
  color: var(--dk-olive);
}
.product-card__image {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f5f3ef, #ece8e1);
  border-radius: var(--dk-radius-xs);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card__cat {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--dk-olive);
  margin-bottom: 2px;
}
.product-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dk-anthracite);
  line-height: 1.3;
  margin-bottom: 1px;
}
.product-card__brand {
  font-size: 11px;
  color: var(--dk-text-light);
  margin-bottom: 6px;
}
.product-card__stars {
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .dk-hero__card { grid-template-columns: 200px 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .dk-hero { padding: 0 16px; }
  .dk-hero__card { grid-template-columns: 1fr; padding: 20px; }
  .dk-hero__left { max-width: 200px; margin: 0 auto; }
  .dk-facts { grid-template-columns: 1fr 1fr; }
  .dk-proscons { grid-template-columns: 1fr; }
  .dk-cta { flex-direction: column; text-align: center; }
  .dk-bar-row { grid-template-columns: 90px 1fr 30px; }
  .product-card-grid { grid-template-columns: 1fr 1fr; }
  .dk-section--pad { padding: 20px; }
}
@media (max-width: 480px) {
  .dk-hero__title { font-size: 22px; }
  .dk-facts { grid-template-columns: 1fr; }
  .product-card-grid { grid-template-columns: 1fr; }
}