/*
 * Diktify — Black-Week-Banner und Aktionspreise
 * Copyright (c) 2026 GO-ITC GmbH — Andreas Graebner
 * Wirkt nur, wenn promo-banner.js die Aktion aktiviert (Banner ohne `hidden`,
 * Klasse `dk-promo-on` an <html>). Ohne Aktion bleibt das Layout unveraendert.
 */

.dk-promo[hidden],
.dk-promo [hidden],
.plan-promo-note[hidden],
.plan-checkout-note[hidden],
.toggle-save[hidden] { display: none !important; }

.dk-promo {
  background: #1c1e2a;
  color: #ffffff;               /* Kontrast ca. 16:1 */
  font-size: 13.5px;
  line-height: 1.45;
}
.dk-promo-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 20px;
}
.dk-promo-text { margin: 0; flex: 1 1 520px; min-width: 0; overflow-wrap: anywhere; }
.dk-promo-headline { font-weight: 700; margin-right: 4px; }
.dk-promo-onetime,
.dk-promo-period { margin-left: 4px; }
.dk-promo-countdown { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dk-promo-time { font-weight: 700; }
.dk-promo-cta,
.dk-promo-cta:visited { color: #ffffff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.dk-promo-cta:hover { color: #dcd8ff; }
.dk-promo-cta:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; border-radius: 2px; }

/* Startseite: Banner fest oberhalb der festen Navigation. Es liegt ausserhalb
   des Dokumentflusses; der Hero bekommt nur dann mehr Abstand, wenn Banner und
   Navigation hoeher sind als sein vorhandener Freiraum (130 px bzw. 100 px). */
html.dk-promo-on .dk-promo-top { position: fixed; top: 0; left: 0; right: 0; z-index: 101; }
html.dk-promo-on .nav { top: var(--dk-promo-h, 0px); }
html.dk-promo-on .hero { padding-top: max(130px, calc(var(--dk-promo-h, 0px) + 100px)); }

@media (max-width: 768px) {
  .dk-promo { font-size: 12.5px; }
  .dk-promo-inner { padding: 6px 16px; justify-content: flex-start; }
  html.dk-promo-on .hero { padding-top: max(100px, calc(var(--dk-promo-h, 0px) + 92px)); }
  /* Auf kleinen Bildschirmen wuerde ein festes, mehrzeiliges Banner zu viel
     Platz belegen: Banner und Navigation scrollen dort waehrend der Aktion mit. */
  html.dk-promo-on .dk-promo-top,
  html.dk-promo-on .nav { position: absolute; }
}

/* Preiskarten der Startseite */
.plan-price .dk-promo-was {
  font-size: 18px;
  font-weight: 600;
  color: rgba(28, 30, 42, 0.72);
  letter-spacing: 0;
  white-space: nowrap;
}
.plan-promo-note {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(28, 30, 42, 0.86);
}
/* Hinweis beim Kauf (409 „Preise haben sich geaendert“), wie das Fehlerfeld der Ads-LP. */
.plan-checkout-note {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fff0f0;
  color: #a22626;               /* Kontrast ca. 6,7:1 */
  font-size: 13px;
  line-height: 1.45;
}
