/**
 * affiliate-slot.css — globaloilshock.com — Affiliate-Card Styling
 * Welle 2026-05-17 Nacht — Step 2 Lean-Start.
 *
 * Brand-coherent: nutzt Page-Tokens (--card, --line, --accent, --ink, --muted).
 * Standing Rule HH: explizite !important Overrides gegen globale a{border-bottom}
 * der Country/Lex/Tip Pages.
 *
 * Disclosure-Label oben (UWG-Pflicht):
 *  - Subtle, aber sichtbar — nicht versteckt
 *  - Rel-Position: oben rechts, eyebrow-style
 *
 * Layout:
 *  - Desktop: Logo links 80x80 + Text rechts + CTA unten/rechts
 *  - Mobile: Stack — Disclosure, Logo, Text, CTA
 */

/* ===== Mount Wrapper ===== */
.gos-aff-slot-wrap {
  margin: clamp(24px, 4vw, 40px) 0;
}

.gos-aff-lead {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted, rgba(230,235,242,0.55));
  text-transform: uppercase;
  font-weight: 600;
}

.gos-aff-slot-mount {
  margin: 0;
}

/* Empty-State: no active partner → render nothing, no visual artifact */
.gos-aff-slot-mount.gos-aff-empty {
  display: none !important;
}

/* Wenn slot empty: lead-text + wrap auch ausblenden (kein leerer Eyebrow) */
.gos-aff-slot-wrap:has(.gos-aff-slot-mount.gos-aff-empty) {
  display: none !important;
}

/* ===== Card Container ===== */
.gos-aff-card {
  position: relative;
  background: var(--card, rgba(255,255,255,0.04));
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: inherit;
  color: var(--ink, #e6ebf2);
  box-sizing: border-box;
  isolation: isolate;
}

/* override globaler a{border-bottom} aus Country/Lex/Tip Inline-CSS (Standing Rule HH) */
.gos-aff-card a,
.gos-aff-card a:hover,
.gos-aff-card a:focus,
.gos-aff-card a:focus-visible,
.gos-aff-card a:active {
  text-decoration: none !important;
  border-bottom: 0 !important;
}
.gos-aff-card * {
  border-bottom: 0 !important;
}

/* ===== Disclosure (UWG-Pflicht — WCAG-AA-konformer Kontrast) =====
   Default "Werbung" per LG Muenchen I 2021. Kontrast >=4.5:1 gegen card-BG.
   Body-Text-Color statt muted, damit 13px-Text die WCAG-AA-Schwelle reisst. */
.gos-aff-disclosure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink, #e6ebf2);
  opacity: 0.92;
  border-bottom: 1px dashed var(--line, rgba(255,255,255,0.10));
  padding-bottom: 8px;
}

.gos-aff-disclosure-label {
  font-weight: 700;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.32);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  color: var(--accent, #f59e0b);
}

.gos-aff-disclosure-label::before {
  content: "ⓘ ";
  margin-right: 4px;
  font-size: 14px;
}

/* ===== Body Layout (Logo + Text) ===== */
.gos-aff-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.gos-aff-logo-wrap {
  flex: 0 0 auto;
}

.gos-aff-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 10px;
  padding: 6px;
}

.gos-aff-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent, #f59e0b);
  background: rgba(245,158,11,0.06);
}

.gos-aff-text {
  flex: 1 1 auto;
  min-width: 0;
}

.gos-aff-headline {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink, #e6ebf2);
}

.gos-aff-desc {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, rgba(230,235,242,0.78));
}

.gos-aff-partner-name {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted, rgba(230,235,242,0.55));
  letter-spacing: 0.2px;
}

.gos-aff-partner-name::before {
  content: "Anbieter: ";
  opacity: 0.7;
}

/* ===== CTA ===== */
.gos-aff-cta-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  border-top: 1px solid var(--line, rgba(255,255,255,0.06));
  padding-top: 14px;
}

.gos-aff-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a !important;
  background: var(--accent, #f59e0b);
  border: 1px solid var(--accent, #f59e0b);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  min-height: 44px;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.gos-aff-cta:hover,
.gos-aff-cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,158,11,0.18);
}

.gos-aff-cta svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* ===== Mobile Stack ===== */
@media (max-width: 640px) {
  .gos-aff-card {
    padding: 16px 14px 14px;
    gap: 12px;
  }
  .gos-aff-body {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .gos-aff-logo {
    width: 56px;
    height: 56px;
  }
  .gos-aff-logo--placeholder {
    font-size: 26px;
  }
  .gos-aff-headline {
    font-size: 16px;
  }
  .gos-aff-cta-wrap {
    justify-content: stretch;
  }
  .gos-aff-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .gos-aff-cta {
    transition: none;
  }
  .gos-aff-cta:hover {
    transform: none;
  }
}

/* ===== High-contrast Focus ===== */
.gos-aff-cta:focus-visible {
  outline: 2px solid var(--accent-orange, #fb923c);
  outline-offset: 2px;
}
