@import url("wosc-chrome.css");

.woscGlobalChrome {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(10px);
  background: rgba(5, 8, 16, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.woscGlobalChromeInner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.woscGlobalBrand {
  color: #eaf2ff;
  text-decoration: none;
  font-weight: 800;
  margin-right: 6px;
}
.woscGlobalPill {
  color: #eaf2ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}
.woscGlobalPill:hover {
  background: rgba(125, 211, 252, 0.2);
}
.woscGlobalLangWrap {
  margin-left: auto;
  position: relative;
}
.woscGlobalLangBtn {
  color: #eaf2ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
  cursor: pointer;
}
.woscGlobalLangMenu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  max-height: 320px;
  overflow: auto;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 6px;
  display: none;
}
.woscGlobalLangMenu.open {
  display: grid;
  gap: 3px;
}
.woscGlobalLangItem {
  color: #eaf2ff;
  text-decoration: none;
  font-size: 13px;
  padding: 7px 9px;
  border-radius: 8px;
}
.woscGlobalLangItem:hover {
  background: rgba(125, 211, 252, 0.2);
}
.woscGlobalFooter {
  margin-top: 18px;
  padding: 14px 10px 24px;
  text-align: center;
  font-size: 13px;
  color: #aab8d6;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Dezenter Support: fix unten rechts, wandert mit (viewport-fixed), kaum sichtbar bis Hover */
a.woscBmcFloat {
  position: fixed;
  z-index: 9990;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  left: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  background: rgba(10, 14, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0.28;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}
a.woscBmcFloat:hover,
a.woscBmcFloat:focus-visible {
  opacity: 1;
  transform: scale(1.07);
  border-color: rgba(255, 221, 0, 0.45);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 221, 0, 0.15);
}
a.woscBmcFloat:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.9);
  outline-offset: 3px;
}
.woscBmcFloatIcon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 380px) {
  a.woscBmcFloat {
    width: 38px;
    height: 38px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
  }
  .woscBmcFloatIcon {
    width: 20px;
    height: 20px;
  }
}
@media print {
  a.woscBmcFloat {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  a.woscBmcFloat {
    transition: none;
  }
  a.woscBmcFloat:hover,
  a.woscBmcFloat:focus-visible {
    transform: none;
  }
}

/* Einfache Footers direkt in <main> (z. B. Gift-Codes): Text zentrieren */
main > footer:not(.woscFooter) {
  text-align: center;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  max-width: 100%;
}

/* BMC-Kasten in <main><footer> zentrieren (Startseite hat kein .woscFooter) */
main footer .woscFooterBmcBanner {
  width: min(100%, 48rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Footer-Banner: Buy Me a Coffee (einheitlich, injiziert oder statisch im Markup) */
.woscFooterBmcBanner {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 221, 0, 0.24);
  background: linear-gradient(145deg, rgba(255, 221, 0, 0.07), rgba(8, 12, 22, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 22px rgba(0, 0, 0, 0.28);
}
.woscFooterBmcBannerInner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}
/* Klickbarer gelber Chip um die Tasse */
a.woscFooterBmcBannerMarkLink {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: #ffdd00 !important;
  border-radius: 12px;
  border: 1px solid rgba(13, 12, 34, 0.22) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  text-decoration: none !important;
  font-weight: 600 !important;
  color: inherit !important;
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}
a.woscFooterBmcBannerMarkLink:hover {
  filter: brightness(1.06);
  transform: scale(1.04);
  text-decoration: none !important;
}
.woscFooter a.woscFooterBmcBannerMarkLink:hover {
  text-decoration: none !important;
}
a.woscFooterBmcBannerMarkLink:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.95);
  outline-offset: 2px;
}
.woscFooterBmcBannerMark {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}
.woscFooterBmcBannerCopy {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #9fb0cc;
  flex: 1 1 240px;
  min-width: min(100%, 220px);
}
.woscFooterBmcBannerCopy a {
  color: #c9d7ee !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.woscFooterBmcBannerCopy a:hover {
  color: #fde68a !important;
}
/* Handy + Tablet (hochkant): BMC-Kasten an Inhalt, kein „leerer“ Rahmen */
@media (max-width: 768px) {
  main footer .woscFooterBmcBanner,
  .woscFooter .woscFooterBmcBanner,
  .woscFooterBmcBanner {
    width: fit-content !important;
    max-width: min(100%, 36rem) !important;
    padding: 7px 11px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .woscFooterBmcBannerInner {
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    justify-content: center;
  }
  .woscFooterBmcBannerCopy {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: center;
  }
  a.woscFooterBmcBannerMarkLink {
    width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 10px;
  }
}

/* Runder BMC in der Nav — gelb, hohe Spezifität (schlägt .pill / Chrome-Regeln) */
nav.nav a.woscNavBmc,
.woscNav a.woscNavBmc,
a.woscNavBmc {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(13, 12, 34, 0.28) !important;
  background: #ffdd00 !important;
  background-color: #ffdd00 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 10px rgba(0, 0, 0, 0.3) !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}
nav.nav a.woscNavBmc:hover,
.woscNav a.woscNavBmc:hover,
a.woscNavBmc:hover {
  transform: translateY(-2px);
  background: #ffe94d !important;
  background-color: #ffe94d !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 4px 16px rgba(0, 0, 0, 0.32) !important;
}
nav.nav a.woscNavBmc:focus-visible,
.woscNav a.woscNavBmc:focus-visible,
a.woscNavBmc:focus-visible {
  outline: 2px solid #0b1020 !important;
  outline-offset: 2px;
}
nav.nav a.woscNavBmc img,
.woscNav a.woscNavBmc img,
a.woscNavBmc img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: block !important;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
@media (max-width: 560px) {
  nav.nav a.woscNavBmc,
  .woscNav a.woscNavBmc,
  a.woscNavBmc {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  nav.nav a.woscNavBmc img,
  .woscNav a.woscNavBmc img,
  a.woscNavBmc img {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
  }
}
@media print {
  .woscFooterBmcBanner {
    display: none !important;
  }
}
