/* ===================================================================
   ads.css – Werbe-Komponenten (Slots, Banner, Produktboxen, Anchor)
   Nur bestehende Design-Tokens aus main.css. Kennzeichnung "Anzeige"
   ist Pflicht und nicht abschaltbar. Höhe wird VOR dem Laden reserviert
   (kein Layout-Shift / CLS).
   =================================================================== */

.ad-slot { width: 100%; }
.ad-slot__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.ad-slot__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.ad-banner { display: block; line-height: 0; max-width: 100%; }
.ad-banner img { max-width: 100%; height: auto; display: block; }

/* Artikel: im Fließtext */
.ad-slot--inline { margin: 44px 0; }
.ad-slot--inline .ad-slot__frame { min-height: 250px; }
/* Artikel: Sidebar-Rail (klebt mit der Sidebar) */
.ad-slot--rail { margin-top: 20px; }
.ad-slot--rail .ad-slot__frame { min-height: 600px; }
/* Artikel: vor "Weiterlesen" */
.ad-slot--closing { max-width: 970px; margin: 0 auto 40px; padding: 0 24px; }
.ad-slot--closing .ad-slot__frame { min-height: 250px; }
/* Startseite */
.ad-slot--billboard { margin: 56px auto 0; max-width: 970px; }
.ad-slot--billboard .ad-slot__frame { min-height: 250px; }
.locations-section .ad-slot__label { color: rgba(255,255,255,0.45); }
@media (max-width: 900px) {
  .ad-slot--billboard { margin-top: 40px; }
  .ad-slot--billboard .ad-slot__frame { min-height: 280px; }
}

/* Breitere Sidebar – Voraussetzung für 300x600 */
.content-wrap.rail-300 { grid-template-columns: 300px 1fr; }
@media (max-width: 960px) { .content-wrap.rail-300 { grid-template-columns: 1fr; } }
/* Rail auf Mobil: kein 600er-Block über dem Artikel */
@media (max-width: 960px) { .ad-slot--rail { display: none; } }

/* Mobiler Anchor – nur unter 960px, immer schließbar */
.ad-anchor {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 250;
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(26,60,46,0.10);
  padding: 6px 8px 8px;
}
.ad-anchor.is-on { display: block; }
@media (min-width: 961px) { .ad-anchor { display: none !important; } }
.ad-anchor__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ad-anchor__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.ad-anchor__close {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  font-size: 15px; line-height: 1;
  color: var(--text-mid);
  cursor: pointer;
}
.ad-anchor__frame {
  min-height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 960px) { body.has-anchor { padding-bottom: 104px; } }

/* Native Produktempfehlung im Fließtext */
.rec-box {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  margin: 32px 0;
  overflow: hidden;
}
.rec-box__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--sand);
  padding: 8px 24px;
  margin: 0;
}
.rec-box__inner { padding: 22px 24px 24px; }
.rec-box__img { display: block; margin-bottom: 14px; line-height: 0; }
.rec-box__img img { max-width: 100%; height: auto; border-radius: var(--radius); }
.rec-box__inner h4 { font-family: var(--serif); font-size: 17px; color: var(--text-dark); margin-bottom: 8px; letter-spacing: -0.2px; }
.rec-box__inner p { font-size: 14px; line-height: 1.65; color: var(--text-mid); font-weight: 300; margin-bottom: 14px; }
.rec-box__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rec-box__price { font-family: var(--serif); font-size: 19px; color: var(--green-deep); letter-spacing: -0.3px; }
.rec-box__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-accent); color: var(--white);
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; text-decoration: none; border: none;
}
.rec-box__cta:hover { background: var(--green-mid); border: none; }
.rec-box__inner .rec-box__note { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin-top: 12px; margin-bottom: 0; }

/* Native Karte im Magazin-Grid (HP-B) */
.ad-card {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ad-card:hover { box-shadow: 0 8px 32px rgba(26,60,46,0.12); transform: translateY(-2px); }
.ad-card__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--sand);
  padding: 7px 20px;
  margin: 0;
}
.ad-card__thumb { height: 150px; background: var(--green-ultra); display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; }
.ad-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-card__body { padding: 20px; }
.ad-card__body h3 { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.ad-card__body p { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.ad-card__cta { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green-accent); }

/* Fix: ins im Flex-Rahmen hatte Breite 0 (AdSense No slot size for availableWidth=0) */
.ad-slot__frame > ins.adsbygoogle { flex: 1 1 100%; width: 100%; }

/* Fix: ins im Anchor Rahmen hatte Breite 0 */
.ad-anchor__frame > ins.adsbygoogle { flex: 1 1 100%; width: 100%; }

/* Leere AdSense Plaetze ausblenden (Google setzt data-ad-status unfilled) */
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
