/*
  Tarifchaos – Partner-Fallback bei Ladefehler oder Anbieterhinweis
  ---------------------------------------------------------------
  DS-03-D-06, Prüfhalt 1 (25. Oktober 2026). Markup aus renderPartnerFallback()
  in scripts/build.mjs, im Rechnerbereich des dunklen Aktivierungskastens
  unter „Erneut versuchen“. Wird von renderPage() nur auf Seiten mit dem
  Block geladen. Keine neuen Farben oder Assets: Tokens aus tokens.css, Optik
  der „Anzeige ⓘ“-Zeile und des Infofelds wie partnerkennzeichnung.css,
  Link wie die Links im Infofeld. Bewusst kein zweiter Goldbutton neben
  „Erneut versuchen“ (keine zusätzliche Partnerwerbung).
*/

.v2-fallback {
  margin: 20px 0 4px;
  padding: 16px 18px 18px;
  border-left: 2px solid var(--color-brand-gold);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--color-surface) 7%, transparent);
  color: var(--color-surface);
  font-size: .9rem;
  line-height: 1.6;
}
.v2-fallback[hidden] { display: none; }

.v2-fallback__marke {
  display: inline-flex;
  align-items: center;
  min-height: 1lh;
  color: var(--color-brand-gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* 44 × 44 px Bedienfläche wie beim Info-Button der Rechnerkennzeichnung. */
.v2-fallback__toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -13px -13px -13px -7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v2-fallback__toggle:hover,
.v2-fallback__toggle[aria-expanded="true"] {
  background: radial-gradient(circle, color-mix(in srgb, var(--color-brand-gold) 18%, transparent) 0 14px, transparent 14.5px);
}
.v2-fallback__toggle:focus-visible {
  outline: 2px solid var(--color-brand-gold);
  outline-offset: -8px;
}

.v2-fallback__icon {
  display: block;
  width: 18px;
  height: 18px;
}

.v2-fallback__panel {
  margin: 10px 0 4px;
  padding: 12px 14px 2px;
  border-left: 2px solid var(--color-brand-gold);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--color-surface) 7%, transparent);
  font-size: .875rem;
}
.v2-fallback__panel[hidden] { display: none; }
.v2-fallback__panel p {
  margin: 0 0 6px;
  max-width: 62ch;
}
.v2-fallback__panel .v2-fallback__titel {
  font-weight: 700;
  color: var(--color-brand-gold);
}

.v2-fallback__close {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--color-brand-gold);
  font: 700 .85rem/1.2 var(--font-base);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.v2-fallback__text {
  margin: 8px 0 10px;
  max-width: 62ch;
}

.v2-fallback__panel a,
.v2-fallback__link {
  color: var(--color-surface);
  text-decoration: underline;
  text-decoration-color: var(--color-brand-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* Bedienfläche mindestens 44 px hoch, ohne Buttonoptik. */
.v2-fallback__link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  font-weight: 700;
}

.v2-fallback__panel a:focus-visible,
.v2-fallback__close:focus-visible,
.v2-fallback__link:focus-visible {
  outline: 2px solid var(--color-brand-gold);
  outline-offset: 2px;
}
