/* Hide third-party chrome we don't use (Cookiebot/Weglot leftovers, Webflow badge). */
.CybotExternalLinkArrow,
.weglot-container {
  display: none;
}

/* Cookiebot floating “privacy trigger” — especially intrusive bottom-left on mobile.
   Consent can still be changed via Datenschutz / Privacy declaration. */
#CookiebotWidget {
  display: none !important;
}

.w-webflow-badge {
  display: none !important;
  visibility: hidden !important;
}

/* Dim the site 50% while Cookiebot dialog is open */
#CybotCookiebotDialogBodyUnderlay {
  background-color: rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Fallback dim when Cookiebot does not inject its underlay (overlay style off) */
html.cookiebot-dialog-open::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

html.cookiebot-dialog-open:has(#CybotCookiebotDialogBodyUnderlay)::before {
  display: none;
}

/* Cookiebot declaration on Datenschutz / Privacy */
.machbar-cookie-declaration {
  margin-top: 0.75rem;
  min-height: 2rem;
}

/* Click-to-load YouTube facade — match showcase play language */
.machbar-consent-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
  background-image: none !important;
  padding: 0 !important;
}

.machbar-consent-embed__poster {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block !important;
  margin: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.machbar-consent-embed__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font: inherit;
  background: rgb(0 0 0 / 28%);
  cursor: pointer;
  transition: background 0.2s ease;
}

.machbar-consent-embed__play:hover,
.machbar-consent-embed__play:focus-visible {
  background: rgb(0 0 0 / 38%);
}

.machbar-consent-embed__play-icon {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 8px 28px rgb(0 0 0 / 28%);
  position: relative;
  flex-shrink: 0;
}

.machbar-consent-embed__play-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #111;
}

.machbar-consent-embed__play-label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgb(0 0 0 / 55%);
}

.machbar-consent-embed__prompt {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  background: rgb(0 0 0 / 72%);
}

.machbar-consent-embed.is-consent-prompt .machbar-consent-embed__prompt {
  display: flex;
}

.machbar-consent-embed.is-consent-prompt .machbar-consent-embed__play {
  display: none;
}

.machbar-consent-embed__prompt-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.machbar-consent-embed__prompt-body {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.95;
}

.machbar-consent-embed__prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.machbar-consent-embed__prompt-primary,
.machbar-consent-embed__prompt-secondary {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 2px;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
}

.machbar-consent-embed__prompt-primary {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.machbar-consent-embed__prompt-primary:hover,
.machbar-consent-embed__prompt-primary:focus-visible {
  background: #f2f2f2;
}

.machbar-consent-embed__prompt-secondary {
  color: #fff;
  background: transparent;
  border-color: rgb(255 255 255 / 55%);
}

.machbar-consent-embed__prompt-secondary:hover,
.machbar-consent-embed__prompt-secondary:focus-visible {
  border-color: #fff;
  background: rgb(255 255 255 / 10%);
}

.machbar-consent-embed__fallback {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 4;
  transform: translateX(-50%);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-shadow: 0 1px 6px rgb(0 0 0 / 65%);
  opacity: 0.92;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.machbar-consent-embed.is-consent-prompt .machbar-consent-embed__fallback {
  z-index: 6;
}

.machbar-consent-embed.is-embed-mounted .machbar-consent-embed__play,
.machbar-consent-embed.is-embed-mounted .machbar-consent-embed__fallback,
.machbar-consent-embed.is-embed-mounted .machbar-consent-embed__poster,
.machbar-consent-embed.is-embed-mounted .machbar-consent-embed__prompt {
  display: none !important;
}

.machbar-consent-embed [data-consent-embed-slot] {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.machbar-consent-embed.is-embed-mounted [data-consent-embed-slot] {
  z-index: 5;
}
