/* promo.css – Hinweis-Popup unten links (aktuell: „Tellerhelden“), nur Startseite.
   Unten links, damit es dem Back-to-top-Button und dem Formular-Toast (unten rechts) nicht im Weg ist. */

.promo {
  --promo-bg: #17181b;
  --promo-text: #f3f4f6;
  --promo-muted: #c5cad3;
  --promo-accent: #ff8585; /* helles Rot: ausreichend Kontrast auf dunklem Grund */
  --promo-line: rgba(255, 255, 255, 0.14);
  position: fixed;
  left: 30px;
  bottom: 30px;
  /* unter Navbar (999) und Mobil-Menü (998), Lightbox (2000) und Bootstrap-Modal (1055) */
  z-index: 990;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition:
    opacity 0.25s ease,
    visibility 0.25s;
}

/* Solange der Footer sichtbar ist, verdeckt das Popup keine Footer-Links */
.promo.is-at-footer,
.lightbox-open .promo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================
   PANEL (aufgeklappt)
========================= */

.promo-panel {
  position: relative;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.25rem 0.75rem;
  border: 1px solid var(--promo-line);
  border-top: 3px solid var(--main-brand-color);
  border-radius: var(--radius-md);
  background: var(--promo-bg);
  color: var(--promo-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  animation: promo-in 0.35s ease both;
}

@keyframes promo-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-close {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--promo-muted);
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.promo-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.promo-label {
  margin: 0 2.75rem 0.25rem 0; /* rechts Platz für den Schließen-Button */
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--promo-accent);
}

.promo-title {
  margin: 0 2.75rem 0 0;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.promo-claim {
  margin: 0.125rem 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--promo-muted);
}

.promo-text {
  margin: 0 0 0.75rem;
}

.promo-list {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.promo-list li,
.promo-address {
  display: flex;
  gap: 0.5rem;
}

.promo-list li + li {
  margin-top: 0.375rem;
}

.promo-list .bi,
.promo-address .bi {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--promo-accent);
}

.promo-address {
  margin: 0 0 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--promo-line);
  font-style: normal;
  color: var(--promo-muted);
}

.promo-address strong {
  display: block;
  color: var(--promo-text);
}

/* Adresse als Link zu Google Maps (nur Verweis, keine eingebettete Karte) */
.promo-map-link {
  color: inherit;
  text-decoration: none;
}

.promo-map-hint {
  display: block;
  margin-top: 0.125rem;
  color: var(--promo-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-map-link:hover,
.promo-map-link:hover .promo-map-hint {
  color: #fff;
}

.promo-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.625rem 1rem;
  border-radius: 4px;
  background: var(--main-brand-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.promo-cta:hover,
.promo-cta:focus {
  background: var(--main-brand-hover);
  color: #fff;
}

.promo-dismiss {
  display: block;
  min-height: 44px;
  margin: 0.25rem auto 0;
  padding: 0 0.75rem;
  border: 0;
  background: transparent;
  color: var(--promo-muted);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.promo-dismiss:hover {
  color: #fff;
}

/* =========================
   LASCHE (zugeklappt)
========================= */

.promo-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--promo-line);
  border-radius: 999px;
  background: var(--promo-bg);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.promo-tab:hover {
  transform: translateY(-2px);
}

.promo-tab .bi {
  color: var(--promo-accent);
}

/* Dunkler Grund: weißer Fokusrahmen statt Rot */
.promo a:focus-visible,
.promo button:focus-visible {
  outline-color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 576px) {
  .promo {
    left: 16px;
    bottom: 16px;
  }

  /* aufgeklappt über dem Back-to-top-Button (44px + Abstand) */
  .promo.is-open {
    right: 16px;
    bottom: 72px;
  }

  .promo-panel {
    width: auto;
    max-width: none;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    padding: 1rem 1rem 0.5rem;
  }

  .promo-title {
    font-size: 1.5rem;
  }
}
