/**
 * 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;
}

/* ============================================================
   gos:aff-card v1.1 — 2026-09-13
   Welle 7 Nachbesserung nach Live-Blick. Drei Befunde:
   (1) Platzhalter-Buchstabe las sich wie ein fehlendes Bild,
   (2) tote Zone zwischen Trennlinie und CTA, Karte 230px fuer 4 Zeilen,
   (3) Anbietername war das unscheinbarste Element.
   Rein additiv, keine JS-Aenderung — der Renderer liefert die Struktur bereits.
   ============================================================ */

/* Bild gross und ohne Kaesten-Optik: das Partnerbild IST das Element */
.gos-aff-card .gos-aff-logo {
  width: 96px;
  height: 96px;
  padding: 0;
  border-radius: 12px;
  background: #ffffff;          /* Produktfotos und Logos kommen meist auf Weiss */
  border: 1px solid var(--line, rgba(255,255,255,0.10));
  object-fit: cover;
}

/* Fallback, solange fuer einen Partner noch kein Bild hinterlegt ist:
   Monogramm auf ruhiger Flaeche statt leerem Kasten mit Riesenbuchstabe. */
.gos-aff-card .gos-aff-logo--placeholder {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: rgba(245,158,11,0.85);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(245,158,11,0.16), transparent 60%),
    var(--card2, #1a2740);
  border-color: rgba(245,158,11,0.22);
}

/* Inhaltszeile: Bild, Text und CTA in EINER Reihe — die tote Zone entfaellt */
.gos-aff-card .gos-aff-body {
  align-items: center;
  gap: 20px;
}

/* Anbietername nach oben holen und lesbar machen */
.gos-aff-card .gos-aff-partner-name {
  order: -1;
  margin: 0 0 6px;
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ink, #e6ebf2);
  opacity: 0.95;
}
.gos-aff-card .gos-aff-partner-name::before { content: none; }
.gos-aff-card .gos-aff-text { display: flex; flex-direction: column; }
.gos-aff-card .gos-aff-headline { order: 0; font-size: 16.5px; }
.gos-aff-card .gos-aff-desc { order: 1; margin-bottom: 0; }

/* CTA wandert in die Zeile, Trennabstand faellt weg */
.gos-aff-card .gos-aff-cta-wrap {
  margin-top: 0;
  flex: 0 0 auto;
  align-self: center;
}

/* Die Trennlinie stammt aus dem gestapelten Entwurf. Steht der CTA neben dem
   Text, haengt sie als loser Strich ueber dem Knopf. Am Handy bleibt sie. */
@media (min-width: 721px) {
  .gos-aff-card .gos-aff-cta-wrap { border-top: 0; padding-top: 0; }
}
.gos-aff-card .gos-aff-body { position: relative; }

@media (min-width: 721px) {
  .gos-aff-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "disc disc"
      "body cta";
    align-items: center;
    column-gap: 20px;
    row-gap: 14px;
  }
  .gos-aff-card .gos-aff-disclosure { grid-area: disc; }
  .gos-aff-card .gos-aff-body { grid-area: body; }
  .gos-aff-card .gos-aff-cta-wrap { grid-area: cta; }
}

/* Handy: gestapelt, CTA volle Breite, Bild kleiner */
@media (max-width: 720px) {
  .gos-aff-card .gos-aff-logo { width: 68px; height: 68px; border-radius: 10px; }
  .gos-aff-card .gos-aff-logo--placeholder { font-size: 26px; }
  .gos-aff-card .gos-aff-body { gap: 14px; align-items: flex-start; }
  .gos-aff-card .gos-aff-cta-wrap { margin-top: 14px; }
  .gos-aff-card .gos-aff-cta { width: 100%; justify-content: center; }
}
