:root {
  --hc-notice-accent: #283b8e;
  --hc-notice-accent-deep: #1c2a68;
  --hc-notice-tint: #e9ecf6;
  --hc-notice-paper: #faf7f2;
  --hc-notice-ink: #1b1a17;
  --hc-notice-muted: #5b574f;
  --hc-notice-border: #ddd5c5;
  --hc-notice-font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-notice-area="plusdienste"] {
  --hc-notice-accent: #568f31;
  --hc-notice-accent-deep: #2b5a24;
  --hc-notice-tint: #edf4e9;
}

body[data-notice-area="robotclean"] {
  --hc-notice-accent: #9b3030;
  --hc-notice-accent-deep: #7a2424;
  --hc-notice-tint: #f4e9e9;
}

.hc-notice-ticker {
  position: relative;
  z-index: 90;
  overflow: hidden;
  min-height: 46px;
  background: var(--hc-notice-accent-deep);
  color: #fff;
  font-family: var(--hc-notice-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.hc-notice-ticker__viewport {
  display: flex;
  min-height: 46px;
  align-items: center;
  overflow: hidden;
}

.hc-notice-ticker__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  animation: hc-notice-scroll var(--hc-notice-duration, 24s) linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.hc-notice-ticker__track span {
  flex: none;
  padding: 0 42px;
}

.hc-notice-ticker.is-static .hc-notice-ticker__track {
  width: 100%;
  animation: none;
  justify-content: center;
  white-space: normal;
  text-align: center;
}

.hc-notice-ticker.is-static .hc-notice-ticker__track span:first-child {
  flex: 1;
}

.hc-notice-ticker.is-static .hc-notice-ticker__track span:last-child {
  display: none;
}

@keyframes hc-notice-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hc-notice-dialog {
  width: min(calc(100% - 32px), 720px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: var(--hc-notice-paper);
  color: var(--hc-notice-ink);
  box-shadow: 0 28px 80px rgba(27, 26, 23, .38);
  font-family: var(--hc-notice-font);
}

.hc-notice-dialog::backdrop {
  background: rgba(20, 22, 25, .72);
  backdrop-filter: blur(2px);
}

.hc-notice-dialog__bar {
  height: 10px;
  background: var(--hc-notice-accent);
}

.hc-notice-dialog__close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hc-notice-border);
  border-radius: 50%;
  background: rgba(250, 247, 242, .94);
  color: var(--hc-notice-ink);
  font: 400 28px/1 var(--hc-notice-font);
  cursor: pointer;
}

.hc-notice-dialog__close:focus-visible,
.hc-notice-dialog__button:focus-visible {
  outline: 3px solid var(--hc-notice-accent);
  outline-offset: 3px;
}

.hc-notice-dialog__content {
  padding: clamp(34px, 7vw, 64px);
}

.hc-notice-dialog__eyebrow {
  margin: 0 58px 18px 0;
  color: var(--hc-notice-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.hc-notice-dialog h2 {
  margin: 0;
  color: var(--hc-notice-ink);
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.02;
}

.hc-notice-dialog__text {
  margin: 24px 0 0;
  color: var(--hc-notice-muted);
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  white-space: pre-line;
}

.hc-notice-dialog__actions {
  display: flex;
  margin-top: 32px;
  justify-content: flex-start;
}

.hc-notice-dialog__button {
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: var(--hc-notice-accent);
  color: #fff;
  font: 700 16px/1 var(--hc-notice-font);
  cursor: pointer;
}

.hc-notice-dialog--image {
  width: min(calc(100% - 32px), 680px);
}

.hc-notice-dialog--image .hc-notice-dialog__content {
  padding: 24px;
}

.hc-notice-dialog__image-heading {
  margin: 0 64px 18px 4px;
  font-size: clamp(24px, 4vw, 34px);
}

.hc-notice-dialog__image {
  width: 100%;
  max-height: calc(100dvh - 180px);
  object-fit: contain;
  background: var(--hc-notice-tint);
}

@media (max-width: 520px) {
  .hc-notice-ticker {
    font-size: 14px;
  }

  .hc-notice-ticker__track span {
    padding-inline: 26px;
  }

  .hc-notice-dialog__close {
    top: 18px;
    right: 18px;
  }

  .hc-notice-dialog--image .hc-notice-dialog__content {
    padding: 16px;
  }

  .hc-notice-dialog__image-heading {
    font-size: clamp(24px, 7vw, 28px);
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-notice-ticker__track {
    width: 100%;
    animation: none;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .hc-notice-ticker__track span:first-child {
    flex: 1;
  }

  .hc-notice-ticker__track span:last-child {
    display: none;
  }
}
