/* Geteilte Bottom-Menu-Bar (Buy-Bar + rundes Morph-Menü) — auf allen Seiten gleich. */
:root {
  --primary: #0869D8;
  --primary-hover: #2A85E8;
}

.buybar {
  position: fixed; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: center; align-items: center; gap: 12px; z-index: 1000;
  pointer-events: none; padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  transform: translateY(160%); opacity: 0;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .45s ease;
}
.buybar.is-in { transform: translateY(0); opacity: 1; }
.buybar__inner {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 18px;
  background: #f5f5f7; border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 980px; padding: 8px 8px 8px 26px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
}
.buybar__price { font-size: 1.375rem; font-weight: 600; color: #1d1d1f; white-space: nowrap; letter-spacing: -0.01em; }
.buybar__dots { display: flex; align-items: center; gap: 10px; }
.buybar__dot { width: 26px; height: 26px; border-radius: 50%; border: none; padding: 0; cursor: pointer; transition: box-shadow .15s ease; }
.buybar__dot--black { background: #1d1d1f; }
.buybar__dot--white { background: #ffffff; box-shadow: inset 0 0 0 1px #d2d2d7; }
.buybar__dot--black.is-selected { box-shadow: 0 0 0 2px #f5f5f7, 0 0 0 4px var(--primary); }
.buybar__dot--white.is-selected { box-shadow: inset 0 0 0 1px #d2d2d7, 0 0 0 2px #f5f5f7, 0 0 0 4px var(--primary); }
.buybar__cta {
  border: none; cursor: pointer; background: var(--primary); color: #fff;
  font-size: 17px; font-weight: 400; line-height: 1; padding: 13px 26px;
  border-radius: 980px; transition: background .2s ease; font-family: inherit;
}
.buybar__cta:hover { background: var(--primary-hover); }
.buybar__cta:disabled { opacity: .6; cursor: default; }

/* Runder Menü-Button als eigenes Element rechts neben der Pille (gleich hoch wie die Pille) */
.buybar__menuwrap { position: relative; pointer-events: auto; flex: 0 0 auto; }
.buybar__menu {
  flex: 0 0 auto; width: 61px; height: 61px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15); background: #f5f5f7; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
  transition: background .2s ease;
}
.buybar__menu:hover { background: #ececef; }
.buybar__menu span { position: relative; display: block; width: 18px; height: 2px; background: #1d1d1f; border-radius: 2px; transition: background .2s ease; }
.buybar__menu span::before, .buybar__menu span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #1d1d1f; border-radius: 2px; transition: transform .25s ease; }
.buybar__menu span::before { top: -6px; }
.buybar__menu span::after { top: 6px; }
.buybar__menu.is-open span { background: transparent; }
.buybar__menu.is-open span::before { transform: translateY(6px) rotate(45deg); }
.buybar__menu.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* Morph-Menü */
.bbmenu {
  position: absolute; bottom: calc(100% + 12px); right: 0;
  min-width: 232px; padding: 8px;
  background: #f5f5f7; border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 22px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
  display: flex; flex-direction: column; gap: 2px;
  transform-origin: bottom right;
  opacity: 0; transform: translateY(10px) scale(0.55); pointer-events: none;
  transition: opacity .26s ease, transform .34s cubic-bezier(.2, .8, .2, 1);
}
.bbmenu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.bbmenu a { color: #1d1d1f; text-decoration: none; font-size: 16px; line-height: 1; padding: 14px 16px; border-radius: 14px; white-space: nowrap; transition: background .18s ease; }
.bbmenu a:hover { background: rgba(0, 0, 0, 0.05); }

/* Globaler Footer mit Rechtslinks */
.sitefoot {
  background: #f5f5f7; border-top: 1px solid #e2e2e7; text-align: center;
  padding: 48px 24px calc(120px + env(safe-area-inset-bottom, 0px));
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sitefoot__links { margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.sitefoot__links a { color: #1d1d1f; text-decoration: none; font-size: 0.9rem; }
.sitefoot__links a:hover { text-decoration: underline; }
.sitefoot__legal { margin: 0; font-size: 0.8rem; color: #86868b; }
.langswitch { margin: 14px 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.langswitch__btn { background: none; border: 0; padding: 4px 6px; cursor: pointer; font: inherit; font-size: 0.9rem; color: #6e6e73; border-radius: 6px; }
.langswitch__btn:hover { color: #1d1d1f; }
.langswitch__btn.is-active { color: #1d1d1f; font-weight: 600; }
.langswitch__sep { color: #d2d2d7; }

@media (max-width: 480px) {
  .buybar__inner { gap: 12px; padding: 7px 7px 7px 20px; }
  .buybar__price { font-size: 1.15rem; }
  .buybar__cta { padding: 11px 20px; font-size: 16px; }
  .buybar__dot { width: 22px; height: 22px; }
  .buybar__menu { width: 54px; height: 54px; }
}
