:root {
  --wewo-ink: #193b49;
  --wewo-bg: #f3f8fb;
  --wewo-accent: #226c83;
  --wewo-muted: #627c8a;
  --wewo-line: #dce7ed;
  --wewo-primary: linear-gradient(140deg, #38879b, #16566d);
}
html:has(.wewo-header) { background: var(--wewo-bg); }
body:has(.wewo-header) {
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wewo-ink);
  background: radial-gradient(ellipse at 85% 0, #e0eef6, transparent 50%);
}
body:has(.wewo-header) .wrap { width: min(1180px, calc(100% - 48px)); }
body:has(.wewo-header) .choices { border-radius: 23px; border-color: var(--wewo-line); }
body:has(.wewo-header) main h1 { font-size: clamp(28px, 3.2vw, 39px); line-height: 1.15; font-weight: 650; }
body:has(.wewo-header) main h2 { font-size: 26px; }
body:has(.wewo-header) main h3 { font-size: 22px; }
body:has(.wewo-header) .primary { background: var(--wewo-primary); color: white; }
body:has(.wewo-header) .secondary { background: #ffffffb0; border: 1px solid #d5e3eb; }
body:has(.wewo-header) :is(.primary, .secondary) { border-radius: 30px; min-height: 44px; }
body:has(.wewo-header) #termine { scroll-margin-top: calc(84px + env(safe-area-inset-top)); }
.wewo-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-top: env(safe-area-inset-top);
  background: #f7fbfdd9;
  backdrop-filter: blur(22px);
  border-bottom: 1px solid #fff;
}
.wewo-header__bar {
  max-width: 1180px;
  min-height: 68px;
  margin-inline: auto;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.wewo-header__brand { display: flex; flex: 0 1 226px; min-width: 0; }
.wewo-header__brand img { display: block; width: 100%; height: auto; }
.public-menu-open {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid #d0dfe6;
  border-radius: 50%;
  background: #ffffffd9;
  color: #214d60;
  box-shadow: 0 4px 18px #1b465b0b;
  backdrop-filter: blur(20px);
  cursor: pointer;
}
.public-menu-open svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.wewo-menu {
  position: fixed;
  inset: calc(76px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right), calc((100vw - 1148px) / 2)) auto auto;
  width: min(360px, calc(100% - 32px));
  max-height: calc(100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: 0;
  padding: 16px;
  border: 1px solid var(--wewo-line);
  border-radius: 23px;
  color: var(--wewo-ink);
  background: #f7fbfdf2;
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 48px #193b4929;
}
.wewo-menu::backdrop { background: #193b4933; }
.wewo-menu__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wewo-menu__heading h2 { margin: 0; font-size: 20px; }
.wewo-menu__heading button {
  width: 44px; height: 44px; border: 1px solid var(--wewo-line);
  border-radius: 50%; background: white; color: inherit; font-size: 24px;
}
.wewo-menu nav { display: grid; gap: 4px; margin-top: 12px; }
.wewo-menu nav a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border-radius: 30px; color: inherit; text-decoration: none;
}
.wewo-menu nav a:hover, .wewo-menu nav a[aria-current] { background: #e0eef6; }
.wewo-menu nav a[aria-current] { font-weight: 650; }
@media (max-width: 650px) {
  body:has(.wewo-header) .wrap { width: calc(100% - 32px); }
  .wewo-header__bar { min-height: 58px; padding-block: 6px; gap: 14px; }
  .wewo-header__brand { flex-basis: 210px; }
  .public-menu-open { width: 44px; height: 44px; }
  .wewo-menu { top: calc(66px + env(safe-area-inset-top)); }
}

body:has(.wewo-header) .primary:disabled { background: #e3edf1; color: #506875; }
body:has(.wewo-header) #shop .poster h2 { margin: 10px 0; }
.wewo-header :focus-visible, .wewo-menu :focus-visible {
  outline: 3px solid var(--wewo-accent);
  outline-offset: 3px;
}

.wewo-header--team ~ main {
  padding-block: clamp(18px, 3vw, 36px) 48px;
  min-width: 0;
}
.wewo-header--team ~ main > h1 { margin-top: 0; letter-spacing: -.025em; }
.wewo-header--team ~ main .choices { overflow-wrap: anywhere; }
.wewo-header--team ~ .admin-sections > .choices { margin-block: 20px; }
.wewo-header--team ~ .admin-sections h2[id] { scroll-margin-top: 90px; }
.wewo-header--team ~ .admin-sections > nav { gap: 8px; flex-wrap: wrap; }
.wewo-header--team ~ main .booking { align-items: start; }
.wewo-menu .team-menu-label {
  margin: .8rem 14px .15rem;
  color: var(--wewo-muted);
  font-size: .85rem;
  font-weight: 650;
}
.wewo-menu nav button {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--wewo-line);
  border-radius: 30px;
  background: white;
  color: var(--wewo-ink);
  text-align: left;
}
@media (min-width: 761px) {
  body:has(.wewo-header) .basket { top: calc(84px + env(safe-area-inset-top)); }
}

.workspace-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 12px 20px;
}
.workspace-views a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--wewo-line);
  border-radius: 24px;
  background: white;
  color: var(--wewo-ink);
  text-decoration: none;
  font-weight: 600;
}
.workspace-views a:hover, .workspace-views a[aria-current] {
  border-color: var(--wewo-accent);
  background: #e0eef6;
}
.wewo-header--team ~ .admin-sections .admin-record {
  padding: 12px 0;
}
.wewo-header--team ~ .admin-sections .admin-record summary {
  min-height: 36px;
  cursor: pointer;
}

.wewo-header__overview {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  margin-left: auto;
  padding: .4rem .75rem;
  border: 1px solid var(--wewo-line);
  border-radius: 24px;
  background: white;
  color: var(--wewo-ink);
  text-decoration: none;
  font-weight: 650;
  line-height: 1.2;
}
.wewo-header__overview:hover { background: #e0eef6; }
.wewo-menu nav .team-menu-overview { font-weight: 700; background: #e0eef6; }
.team-venue h2[id], #gutscheinliste, tr[id^="gutschein-"] { scroll-margin-top: calc(92px + env(safe-area-inset-top)); }
@media (max-width: 650px) {
  .wewo-header__overview { font-size: .875rem; white-space: nowrap; padding-inline: .5rem; }
  .wewo-header--team .wewo-header__bar { gap: .5rem; }
}

.wewo-header__brand {
  flex: 0 1 auto;
  align-items: center;
  gap: clamp(.5rem, 1.3vw, 1rem);
  color: var(--wewo-ink);
  text-decoration: none;
}
.wewo-header__brand img { flex: 0 1 226px; width: min(48vw, 226px); min-width: 0; }
.wewo-header__name {
  flex: none;
  padding-left: clamp(.5rem, 1.3vw, 1rem);
  border-left: 1px solid #b8cdd8;
  font-size: clamp(.8rem, 2.5vw, 1.15rem);
  font-weight: 700;
  white-space: nowrap;
}
.wewo-shop-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .wewo-header__brand img { width: min(40vw, 180px); }
  .wewo-header--team:has(.wewo-header__overview) .wewo-header__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .wewo-header__overview {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0;
  }
}

.portal-build {
  display: block;
  margin-block: 6px;
  text-align: right;
  color: #536e7b;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
