/* assets/newsletter-cards.css v1.4 - Brent-Alert Conversion-Strategy v1.4
 *
 * D3+D5 - Brent-Alert + Crisis-Update Newsletter Cards.
 * Glass-Style analog wizard.css, brand-coherent (amber+dark).
 *
 * v1.4 (2026-05-14): Decoy-Tier highlight for +$20 pill, two-line pill layout
 *   (label + sub-microcopy), Amber-Outline Submit, mount-specific spacing.
 *
 * Standing Rule W (Section-Indicator) + Standing Rule T (Glas):
 *   - Page-BG #0c1320 als BG-Color (kein saturate-Effekt)
 *   - Multi-Layer-Highlights via radial-gradient
 *   - Touch-Target 44pt (Standing Rule FFFF)
 */

/* Wrapper-Container: gleiche max-width wie Site-Content (article-wrap),
 * damit Cards visuell auf der gleichen Linie wie "Quellen & weiterfuehrende
 * Links" oder "FAQ"-Sections sitzen.
 */
.gos-nl-cards {
  max-width: 880px;
  margin: var(--sp-10, 40px) auto var(--sp-8, 32px) auto;
  padding: 0 var(--sp-6, 24px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .gos-nl-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .gos-nl-cards {
    max-width: 1100px;
  }
}

/* Threshold-Hint unter Pills */
.gos-nl-thresh-hint {
  font-size: 13px;
  color: rgba(229,231,235,.65);
  margin: 8px 0 0 0;
  line-height: 1.5;
}
.gos-nl-thresh-hint strong {
  color: var(--acc, #f59e0b);
  font-weight: 600;
}

.gos-nl-card {
  position: relative;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%,
      rgba(255,255,255,.06) 0%,
      rgba(255,255,255,.02) 40%, transparent 80%),
    linear-gradient(180deg, rgba(12,19,32,.92), rgba(12,19,32,.86));
  border: 1px solid rgba(245,158,11,.18);
  border-radius: 14px;
  padding: 22px 22px 18px 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 16px rgba(0,0,0,.18);
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

.gos-nl-card-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #f59e0b;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gos-nl-card-eyebrow svg {
  width: 14px; height: 14px;
}

.gos-nl-card-title {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
}

.gos-nl-card-sub {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0 0 16px 0;
  line-height: 1.55;
}

.gos-nl-thresholds {
  display: flex;
  gap: 8px;
  margin: 12px 0 14px 0;
  flex-wrap: wrap;
}

/* v1.4: pills now have 2-line layout (label + sub-microcopy) */
.gos-nl-thresh-pill {
  flex: 1 1 auto;
  min-width: 96px;
  min-height: 56px;
  padding: 8px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(245,158,11,.22);
  border-radius: 14px;
  color: #f5f5f7;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.gos-nl-thresh-pill-label {
  font-size: 14px;
  font-weight: 700;
  color: inherit;
  display: block;
}

.gos-nl-thresh-pill-sub {
  font-size: 10.5px;
  color: rgba(229,231,235,.55);
  margin-top: 2px;
  line-height: 1.3;
  font-weight: 500;
  display: block;
}

.gos-nl-thresh-pill:hover {
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.45);
}

.gos-nl-thresh-pill.is-active {
  background: rgba(245,158,11,.18);
  border-color: rgba(245,158,11,.7);
  color: #fde68a;
}

.gos-nl-thresh-pill.is-active .gos-nl-thresh-pill-sub,
.gos-nl-thresh-pill.is-default .gos-nl-thresh-pill-sub {
  color: rgba(229,231,235,.75);
}

/* v1.4: Decoy-Tier highlight for the +$20 default pill (Ariely 2008) */
.gos-nl-thresh-pill.is-default {
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.45);
  box-shadow: 0 0 0 2px rgba(245,158,11,0.25);
}

.gos-nl-thresh-pill.is-default::before {
  content: attr(data-recommended-label);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #0b0705;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 1;
}

/* When the default pill is ALSO active, keep both the default Glow AND the
 * active-color text, they layer cleanly. */
.gos-nl-thresh-pill.is-default.is-active {
  background: rgba(245,158,11,.22);
  border-color: rgba(245,158,11,.85);
}

.gos-nl-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gos-nl-input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}

.gos-nl-input::placeholder { color: #9ca3af; }
.gos-nl-input:focus {
  outline: none;
  border-color: rgba(245,158,11,.55);
  background: rgba(255,255,255,.06);
}
.gos-nl-input.is-invalid {
  border-color: #ef4444;
}

.gos-nl-submit {
  min-height: 44px;
  padding: 0 18px;
  background: #f59e0b;
  border: 0;
  border-radius: 8px;
  color: #0c1320;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.gos-nl-submit:hover { background: #fbbf24; }
.gos-nl-submit:disabled { opacity: .6; cursor: not-allowed; }
.gos-nl-submit.is-loading { opacity: .8; pointer-events: none; }

/* v1.4: Amber-Outline Submit, less aggressive than Calc-CTA full-fill.
 * Inverts on hover to filled state. */
.gos-nl-submit.is-outline {
  background: transparent;
  border: 1.5px solid #f59e0b;
  color: #f59e0b;
  font-weight: 700;
}

.gos-nl-submit.is-outline:hover {
  background: #f59e0b;
  color: #0b0705;
}

.gos-nl-privacy {
  margin-top: 10px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
}

.gos-nl-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  display: none;
}

.gos-nl-status.is-ok {
  display: block;
  background: rgba(110, 231, 183, .12);
  border-left: 3px solid #6ee7b7;
  color: #d1fae5;
}

.gos-nl-status.is-error {
  display: block;
  background: rgba(239, 68, 68, .12);
  border-left: 3px solid #ef4444;
  color: #fecaca;
}

.gos-nl-snapshot-optin {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  cursor: pointer;
}

.gos-nl-snapshot-optin input[type="checkbox"] {
  margin-top: 2px;
  flex: 0 0 auto;
  width: 16px; height: 16px;
  accent-color: #f59e0b;
}

/* Country-Detail-Page Compact-Style: einzelne Card volle Breite */
.gos-nl-cards.is-single {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .gos-nl-cards.is-single { grid-template-columns: 1fr; }
}

/* ==========================================================================
   UNIFIED-CARD v1.4 (1 Email + 2 Checkboxen + optional Snapshot)
   ========================================================================== */
.gos-nl-cards-unified {
  max-width: 720px;
  grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
  .gos-nl-cards-unified {
    grid-template-columns: 1fr !important;
  }
}

.gos-nl-card.gos-nl-unified {
  padding: 24px 24px 20px 24px;
}

/* Option-Rows (Checkbox + Label + optional Controls) */
.gos-nl-opt-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  transition: opacity .15s ease;
  min-height: 44px;
}

.gos-nl-opt-row:first-of-type {
  border-top: 1px solid rgba(245,158,11,.14);
  margin-top: 6px;
}

.gos-nl-opt-row.is-disabled {
  opacity: .55;
}

.gos-nl-opt-row.is-disabled .gos-nl-thresholds,
.gos-nl-opt-row.is-disabled .gos-nl-brent-hint {
  pointer-events: none;
}

.gos-nl-opt-cb {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin-top: 2px;
  accent-color: #f59e0b;
  cursor: pointer;
}

.gos-nl-opt-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.gos-nl-opt-label {
  font-size: 14px;
  line-height: 1.5;
  color: #e5e7eb;
  font-weight: 500;
}

.gos-nl-opt-label-small {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.gos-nl-opt-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

/* Decoy-Pseudo-Label braucht negative-top-margin compensation: pills row gets extra
 * top-space so the "EMPFOHLEN" badge doesn't clip the parent. */
.gos-nl-opt-row .gos-nl-thresholds {
  margin: 10px 0 0 0;
}

.gos-nl-brent-hint {
  font-size: 12px;
  color: rgba(229,231,235,.65);
  line-height: 1.5;
}

.gos-nl-brent-hint strong {
  color: var(--acc, #f59e0b);
  font-weight: 600;
}

/* Form-Layout in Unified-Card: stacked Mobile, inline Desktop */
.gos-nl-card.gos-nl-unified .gos-nl-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

@media (max-width: 539px) {
  .gos-nl-card.gos-nl-unified .gos-nl-form {
    flex-direction: column;
  }
  .gos-nl-card.gos-nl-unified .gos-nl-input,
  .gos-nl-card.gos-nl-unified .gos-nl-submit {
    width: 100%;
  }
}

/* Snapshot-Opt-In dezent (kein border-top, gleicher Style wie Crisis-Row aber kleiner Text) */
.gos-nl-opt-row.gos-nl-opt-snapshot {
  padding: 10px 0 4px 0;
}

/* ==========================================================================
   v1.4 mount-specific spacing
   ========================================================================== */

/* Wizard-result mount: tight, follows Share-Card */
.gos-nl-mount-result {
  margin: 16px 0 24px 0;
}

/* Country-detail: pre-footer position, constrained to article max-width
 * HOTFIX 2026-05-14b: Mount sits at body-level on country-detail (after </article>),
 * so we MUST constrain width here. Standing Rule DDDDD:
 * Global-Component-Mounts müssen IMMER eigene max-width haben,
 * weil sie auf Pages mit unterschiedlichen Page-Containern landen können. */
.gos-nl-mount-country {
  margin: 32px auto 24px auto;
  max-width: 880px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .gos-nl-mount-country {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Lex-term mount: visual separation from FAQ above via 1px top-border via .gos-nl-cards
 * margin. Subtle so it doesn't compete with mid-CTA. */
.gos-nl-mount-lex {
  margin: 32px auto 24px auto;
  padding-top: 8px;
  border-top: 1px solid rgba(245,158,11,.10);
  max-width: 880px;
}

/* Methodik-pillar mount: matches methodik glass-style padding */
.gos-nl-mount-methodik {
  margin: 32px auto 16px auto;
  padding-top: 8px;
  max-width: 880px;
}

/* Sprach-hub FAQ-region mount: between FAQ and country-hub-teaser */
.gos-nl-mount-hub-faq {
  margin: 24px auto 16px auto;
  max-width: 880px;
}

@media (prefers-reduced-motion: reduce) {
  .gos-nl-thresh-pill, .gos-nl-submit, .gos-nl-opt-row { transition: none; }
}
