/* Component ownership: visibility stays strongest; this card owns its geometry and colors
   ahead of global/legacy application rules, independent of stylesheet arrival order. */
@layer evVisibility,evPromo,evVisual;
@layer evPromo {
/* Zero-specificity reset: inherited legacy grid placement, button caps and pseudo styles
   must not leak into this component. Explicit component declarations below still win. */
:where(.r98-promo, .r98-promo *, #eduvilo-promo-dialog, #eduvilo-promo-dialog *) {
  all: revert !important;
  box-sizing: border-box !important;
}
/* R98 – Aktionskarte auf der öffentlichen Startseite: großer Preis-Stern links (Rabatt + Code),
   Überschrift und Button rechts. Wird von assets/promo-flow-20260930.js befüllt (.r98-promo). */
html body :is(#screen-home, #screen-auth, #screen-app) aside.eduvilo-public-promo.r98-promo:not([hidden]) {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 28px !important;
  width: min(1200px, calc(100% - 48px)) !important;
  margin: 34px auto 18px !important;
  padding: 22px 32px 22px 26px !important;
  border-radius: 28px !important;
  background: linear-gradient(110deg, #fff1f4 0%, #fff8fa 55%, #ffffff 100%) !important;
  border: 1px solid #f7cdd8 !important;
  box-shadow: 0 18px 40px -28px rgba(201, 36, 77, 0.45) !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 2 !important;
  overflow: visible !important;
  font: inherit !important;
  color: #1b2340 !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-star {
  width: 206px !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  height: 206px !important;
  margin: -44px 0 -44px -6px !important;
  display: grid !important;
  place-content: center !important;
  justify-items: center !important;
  gap: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  font: inherit !important;
  text-align: center !important;
  background: radial-gradient(circle at 32% 28%, #ce2552 0%, #d81f4f 52%, #ad1039 100%) !important;
  box-shadow: 0 16px 30px -14px rgba(173, 16, 57, 0.65), inset 0 0 0 8px rgba(255, 255, 255, 0.14) !important;
  transform: rotate(-7deg) !important;
  position: relative !important;
  cursor: default !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-star::after {
  content: "" !important;
  position: absolute !important;
  inset: 11px !important;
  border-radius: 50% !important;
  border: 2px dashed rgba(255, 255, 255, 0.55) !important;
  pointer-events: none !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo button.r98-promo-star {
  cursor: pointer !important;
  transition: transform 0.2s ease !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo button.r98-promo-star:hover {
  transform: rotate(-4deg) scale(1.04) !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo button.r98-promo-star:focus-visible {
  outline: 4px solid #1b2340 !important;
  outline-offset: 6px !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-value {
  font-size: 54px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-label {
  margin-top: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  opacity: 0.9 !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-code {
  max-width: 168px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #b3123d !important;
  font-size: var(--r98-code-size, 16px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-copy {
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-copy strong {
  font-size: clamp(22px, 2.2vw, 30px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #1b2340 !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-copy span {
  font-size: 17px !important;
  line-height: 1.45 !important;
  color: #4a5270 !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  background: #d81f4f !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 17px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 22px -12px rgba(179, 18, 61, 0.8) !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-cta:hover {
  background: #b3123d !important;
}

html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-cta:focus-visible {
  outline: 3px solid #1b2340 !important;
  outline-offset: 3px !important;
}

@media (max-width: 760px) {
  /* R106: compact on phones - discount circle beside the text, button below (about half the former height) */
  html body :is(#screen-home, #screen-auth, #screen-app) aside.eduvilo-public-promo.r98-promo:not([hidden]) {
    grid-template-columns: auto minmax(0, 1fr) !important;
    justify-items: start !important;
    align-items: center !important;
    text-align: left !important;
    gap: 10px 14px !important;
    width: calc(100% - 24px) !important;
    margin-top: 10px !important;
    padding: 14px 14px 16px !important;
  }

  html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-star {
    width: 100px !important;
    height: auto !important;
    min-height: 100px !important;
    aspect-ratio: 1 !important;
    padding: 6px !important;
    margin: 0 !important;
  }

  html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-value {
    font-size: 22px !important;
    letter-spacing: -0.02em !important;
  }

  html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-label {
    font-size: 9px !important;
  }

  html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-code {
    max-width: 76px !important;
    padding-inline: 6px !important;
    font-size: .875rem !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    text-overflow: clip !important;
  }

  html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-copy strong {
    font-size: 1.05rem !important;
  }

  html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo .r98-promo-cta {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    justify-content: center !important;
    width: 100% !important;
    white-space: normal !important;
  }
}

/* very large text: stack again so nothing gets squeezed */
@media (max-width: 22em) {
  html body :is(#screen-home, #screen-auth, #screen-app) aside.eduvilo-public-promo.r98-promo:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
  text-align: center !important;
  }
}
@media (max-width: 760px) {
  html[style*="font-size: 200%"] body :is(#screen-home, #screen-auth, #screen-app) aside.eduvilo-public-promo.r98-promo:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    text-align: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body :is(#screen-home, #screen-auth, #screen-app) .r98-promo button.r98-promo-star {
    transition: none !important;
  }
}

/* R100 – Code-Fenster passend zur Aktionskarte */
html body dialog#eduvilo-promo-dialog.promo-code-dialog {
  position: fixed !important;
  width: min(460px, calc(100% - 32px)) !important;
  box-sizing: border-box !important;
  margin: auto !important;
  padding: 30px 30px 26px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: #fff !important;
  color: #1b2340 !important;
  box-shadow: 0 30px 80px -20px rgba(27, 35, 64, 0.45) !important;
  font: inherit !important;
  text-align: center !important;
  overflow: visible !important;
}

html body dialog#eduvilo-promo-dialog::backdrop {
  background: rgba(27, 35, 64, 0.55) !important;
  backdrop-filter: blur(4px) !important;
}

html body dialog#eduvilo-promo-dialog .promo-dialog-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f3f4f8 !important;
  color: #1b2340 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

html body dialog#eduvilo-promo-dialog .promo-dialog-close:hover {
  background: #e6e8f0 !important;
}

html body dialog#eduvilo-promo-dialog .promo-dialog-close:focus-visible {
  outline: 3px solid #d81f4f !important;
  outline-offset: 2px !important;
}

html body dialog#eduvilo-promo-dialog .r98-dialog-badge {
  width: 112px !important;
  height: 112px !important;
  margin: -78px auto 10px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 32% 28%, #ce2552 0%, #d81f4f 52%, #ad1039 100%) !important;
  box-shadow: 0 14px 26px -12px rgba(173, 16, 57, 0.7), inset 0 0 0 6px rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  transform: rotate(-7deg) !important;
}

html body dialog#eduvilo-promo-dialog h2 {
  margin: 4px 36px 6px !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #1b2340 !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-headline {
  margin: 0 0 18px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #b3123d !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-value {
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 16px 12px !important;
  border: 2px dashed #e7879f !important;
  border-radius: 16px !important;
  background: #fff1f4 !important;
  color: #b3123d !important;
  font: inherit !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-align: center !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-value:focus-visible {
  outline: 3px solid #d81f4f !important;
  outline-offset: 2px !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-note {
  margin: 14px 0 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #4a5270 !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-actions {
  display: grid !important;
  gap: 10px !important;
  margin: 20px 0 0 !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-actions .btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  font: inherit !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-actions .btn-primary {
  border: 0 !important;
  background: #d81f4f !important;
  color: #fff !important;
  box-shadow: 0 10px 22px -12px rgba(179, 18, 61, 0.8) !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-actions .btn-primary:hover {
  background: #b3123d !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-actions .btn-ghost {
  border: 2px solid #e3e6ef !important;
  background: #fff !important;
  color: #1b2340 !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-actions .btn-ghost:hover {
  border-color: #c9cede !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-actions .btn:focus-visible {
  outline: 3px solid #1b2340 !important;
  outline-offset: 2px !important;
}

html body dialog#eduvilo-promo-dialog .promo-code-status {
  min-height: 1.4em !important;
  margin: 10px 0 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1f7a4d !important;
}

html body dialog#eduvilo-promo-dialog.r98-has-badge {
  margin-top: max(90px, calc(50vh - 220px)) !important;
}

@media (max-width: 480px) {
  html body dialog#eduvilo-promo-dialog.promo-code-dialog {
    padding: 26px 20px 22px !important;
  }

  html body dialog#eduvilo-promo-dialog .promo-code-value {
    font-size: 22px !important;
  }
}

/* The legacy public-promo pseudo-star is replaced by the real accessible button. */
html body :is(#screen-home, #screen-auth, #screen-app) aside.eduvilo-public-promo.r98-promo::before {
  content: none !important;
  display: none !important;
}

/* Preserve the existing application pause control at the component boundary. */
body.look-motion-paused .r98-promo button.r98-promo-star { transition: none !important; }
body.look-motion-paused .r98-promo button.r98-promo-star:hover { transform: rotate(-7deg) !important; }

@media (min-width: 1001px) {
  html body #screen-app aside.eduvilo-public-promo.r98-promo:not([hidden]) {
    width: calc(100% - var(--r75-nav, 248px) - 48px) !important;
    margin-left: calc(var(--r75-nav, 248px) + 24px) !important;
    margin-right: 24px !important;
  }
}

}
