/* OranienCloud Momente – Web-Branding für die getrennte Ente-Pilotinstanz */
:root,
.light,
.dark {
  --mui-palette-accent-main: #0f8fa3 !important;
  --mui-palette-accent-dark: #0a6f7f !important;
  --mui-palette-accent-light: #3fe0c5 !important;
  --mui-palette-accent-mainChannel: 15 143 163 !important;
  --mui-palette-fixed-success: #0f8fa3 !important;
  --mui-palette-fixed-switchOn: #0f8fa3 !important;
}

body.oc-momente-auth {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(4, 17, 30, .94) 0%, rgba(4, 17, 30, .78) 34%, rgba(4, 17, 30, .2) 63%, rgba(4, 17, 30, .35) 100%),
    url('/images/momente-hintergrund-v1.png') center center / cover fixed no-repeat !important;
  color: #f6fbff;
}

body.oc-momente-auth::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 78% 66%, rgba(63, 224, 197, .10), transparent 68%),
    linear-gradient(180deg, rgba(3, 13, 25, .06), rgba(3, 13, 25, .38));
  z-index: 0;
}

body.oc-momente-auth #__next {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

body.oc-momente-auth #__next > div,
body.oc-momente-auth .oc-native-auth,
body.oc-momente-auth .oc-native-auth > div {
  background: transparent !important;
}

body.oc-momente-auth .oc-native-auth > div {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-end !important;
}

body.oc-momente-auth .oc-auth-curves,
body.oc-momente-auth .oc-upstream-promo {
  display: none !important;
}

body.oc-momente-auth .oc-native-auth {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
}

body.oc-momente-auth .oc-login-pane {
  position: relative !important;
  width: min(430px, 38vw) !important;
  flex: 0 0 min(430px, 38vw) !important;
  min-width: 340px !important;
  height: 100dvh !important;
  margin: 0 !important;
  border-left: 1px solid rgba(143, 227, 236, .18) !important;
  background: rgba(5, 25, 32, .91) !important;
  box-shadow: -28px 0 80px rgba(0, 0, 0, .35) !important;
  backdrop-filter: blur(24px) saturate(115%) !important;
}

body.oc-momente-auth .oc-login-pane .oc-primary-action {
  color: #fff !important;
  background: linear-gradient(110deg, #0f8fa3, #168fc0) !important;
  box-shadow: 0 13px 32px rgba(15, 143, 163, .28) !important;
}

/* Angemeldete Galerie: Das native Ente-Wortzeichen liegt als Inline-SVG im
   Upstream-Client. Ein eigener, nicht klickbarer Produktkopf deckt es ab,
   ohne Navigation oder Upload-Funktionen zu verändern. */
#oc-momente-gallery-wordmark {
  position: fixed;
  z-index: 1300;
  top: 10px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 174px;
  height: 52px;
  padding: 0 16px;
  transform: translateX(-50%);
  border-radius: 15px;
  background: #171717;
  color: #fff;
  box-shadow: none;
  pointer-events: none;
  font: 720 19px/1 "Inter Variable", system-ui, sans-serif;
  letter-spacing: -.02em;
}

#oc-momente-gallery-wordmark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

body.oc-momente-gallery .oc-momente-gallery-hero {
  width: 100% !important;
  height: clamp(190px, 31vh, 270px) !important;
  border-radius: 26px 26px 14px 14px !important;
  object-fit: cover !important;
  object-position: center 42% !important;
  filter: saturate(.9) contrast(1.04) brightness(.78) !important;
}

body.oc-momente-gallery a:focus-visible,
body.oc-momente-gallery button:focus-visible {
  outline: 3px solid rgba(143, 227, 236, .8) !important;
  outline-offset: 3px !important;
}

/* Die Ente-Tarifseite bleibt technisch erhalten, wird im Pilotbetrieb aber
   durch eine Momente-Abschlusskarte ersetzt. So bleibt der originale
   Weiter-Klick zur Galerie samt React-Logik unangetastet. */
body.oc-momente-plan .oc-momente-plan-main {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  background: transparent !important;
}

body.oc-momente-plan .oc-momente-plan-main > :not(#oc-momente-plan-card) {
  display: none !important;
}

#oc-momente-plan-card {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: min(470px, 42vw);
  min-width: 360px;
  height: 100dvh;
  margin: 0;
  padding: clamp(34px, 6vh, 72px) clamp(28px, 3.2vw, 48px);
  overflow-y: auto;
  border-left: 1px solid rgba(143, 227, 236, .2);
  background: rgba(5, 25, 32, .94);
  box-shadow: -28px 0 80px rgba(0, 0, 0, .38);
  color: #f6fbff;
  backdrop-filter: blur(26px) saturate(115%);
}

#oc-momente-plan-card .oc-plan-symbol {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border: 1px solid rgba(143, 227, 236, .28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(63, 224, 197, .16), rgba(15, 143, 163, .08));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

#oc-momente-plan-card .oc-plan-symbol img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

#oc-momente-plan-card .oc-plan-kicker {
  margin: 0 0 10px;
  color: #8fe3ec;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#oc-momente-plan-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -.04em;
}

#oc-momente-plan-card .oc-plan-copy {
  margin: 18px 0 24px;
  color: rgba(236, 247, 252, .78);
  font-size: 16px;
  line-height: 1.55;
}

#oc-momente-plan-card .oc-plan-capacity {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(143, 227, 236, .22);
  border-radius: 16px;
  background: rgba(8, 53, 62, .52);
}

#oc-momente-plan-card .oc-plan-capacity strong {
  color: #fff;
  font-size: 28px;
}

#oc-momente-plan-card .oc-plan-capacity span,
#oc-momente-plan-card .oc-plan-note {
  color: rgba(236, 247, 252, .66);
  font-size: 13px;
}

#oc-momente-plan-card .oc-plan-benefits {
  display: grid;
  gap: 11px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  color: rgba(246, 251, 255, .9);
  font-size: 14px;
}

#oc-momente-plan-card .oc-plan-benefits li {
  position: relative;
  padding-left: 26px;
}

#oc-momente-plan-card .oc-plan-benefits li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #3fe0c5;
  font-weight: 800;
}

#oc-momente-plan-continue {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(110deg, #0f8fa3, #168fc0);
  box-shadow: 0 13px 32px rgba(15, 143, 163, .3);
  color: #fff;
  cursor: pointer;
  font: 700 16px/1.2 "Inter Variable", system-ui, sans-serif;
}

#oc-momente-plan-continue:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

#oc-momente-plan-continue:disabled {
  cursor: wait;
  opacity: .6;
}

#oc-momente-plan-card .oc-plan-note {
  margin: 12px 0 0;
  text-align: center;
}

#oc-momente-brand {
  position: fixed;
  z-index: 2;
  top: clamp(34px, 7vh, 92px);
  left: clamp(28px, 6vw, 112px);
  width: min(430px, 36vw);
  color: #f7fbff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .35);
  pointer-events: none;
}

#oc-momente-brand img {
  width: min(260px, 82%);
  height: auto;
  display: block;
  margin-bottom: clamp(28px, 5vh, 62px);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .28));
}

#oc-momente-brand .oc-kicker {
  margin: 0 0 14px;
  color: #8fe3ec;
  font: 700 12px/1.3 "Inter Variable", system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

#oc-momente-brand h1 {
  margin: 0;
  max-width: 420px;
  font: 650 clamp(34px, 4vw, 62px)/1.02 "Inter Variable", system-ui, sans-serif;
  letter-spacing: -.045em;
}

#oc-momente-brand .oc-copy {
  max-width: 395px;
  margin: 22px 0 0;
  color: rgba(236, 247, 252, .82);
  font: 500 clamp(15px, 1.15vw, 18px)/1.6 "Inter Variable", system-ui, sans-serif;
}

#oc-momente-brand .oc-seal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 9px 13px;
  border: 1px solid rgba(143, 227, 236, .36);
  border-radius: 999px;
  background: rgba(4, 27, 41, .48);
  color: #dffbff;
  font-size: 13px;
  backdrop-filter: blur(14px);
}

#oc-momente-brand .oc-seal::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fe0c5;
  box-shadow: 0 0 16px rgba(63, 224, 197, .9);
}

body.oc-momente-auth #__next > div:last-of-type {
  min-height: 100vh;
}

body.oc-momente-auth #__next img[src*='auth-ducky'] {
  content: url('/images/oraniencloud-app-symbol.png');
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(15, 143, 163, .24));
}

body.oc-momente-auth .oc-momente-native-symbol {
  width: 88px !important;
  height: 88px !important;
  object-fit: contain !important;
  margin-inline: auto !important;
  filter: drop-shadow(0 10px 28px rgba(63, 224, 197, .24)) !important;
}

body.oc-momente-verify .oc-verify-pane {
  color: #f6fbff !important;
}

body.oc-momente-verify .oc-verify-pane input {
  border-color: rgba(143, 227, 236, .24) !important;
}

body.oc-momente-auth #__next form,
body.oc-momente-auth #__next [role='dialog'] {
  backdrop-filter: blur(22px) saturate(120%);
}

body.oc-momente-auth #__next button:not([aria-label]) {
  border-radius: 12px;
}

body.oc-momente-auth a:focus-visible,
body.oc-momente-auth button:focus-visible,
body.oc-momente-auth input:focus-visible {
  outline: 3px solid rgba(143, 227, 236, .8) !important;
  outline-offset: 3px !important;
}

@media (min-width: 900px) {
  body.oc-momente-auth #__next > div:last-of-type {
    padding-left: 0;
  }
}

@media (max-width: 899px) {
  body.oc-momente-auth {
    background:
      linear-gradient(180deg, rgba(4, 17, 30, .28), rgba(4, 17, 30, .94) 54%, #061726 100%),
      url('/images/momente-hintergrund-v1.png') 72% center / cover fixed no-repeat !important;
  }

  #oc-momente-brand {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: 540px;
    margin: 0 auto;
    padding: 26px 22px 4px;
    text-align: center;
  }

  #oc-momente-brand img {
    width: min(210px, 58vw);
    margin: 0 auto 18px;
  }

  #oc-momente-brand h1 {
    max-width: none;
    font-size: clamp(31px, 9vw, 46px);
  }

  #oc-momente-brand .oc-copy {
    display: none;
  }

  #oc-momente-brand .oc-seal {
    margin-top: 16px;
  }

  body.oc-momente-auth #__next > div:last-of-type {
    min-height: auto;
    padding-top: 8px;
  }

  body.oc-momente-auth .oc-native-auth {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
  }

  body.oc-momente-auth .oc-native-auth > div {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.oc-momente-auth .oc-login-pane {
    width: min(520px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    flex: none !important;
    height: auto !important;
    min-height: 440px !important;
    margin: 12px auto 28px !important;
    border: 1px solid rgba(143, 227, 236, .18) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  body.oc-momente-plan .oc-momente-plan-main {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
  }

  #oc-momente-plan-card {
    width: min(540px, calc(100vw - 24px));
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 12px auto 28px;
    padding: 30px 24px 26px;
    overflow: visible;
    border: 1px solid rgba(143, 227, 236, .2);
    border-radius: 24px;
  }

  #oc-momente-plan-card .oc-plan-symbol {
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    border-radius: 18px;
  }

  #oc-momente-plan-card .oc-plan-symbol img {
    width: 40px;
    height: 40px;
  }

  #oc-momente-plan-card h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  #oc-momente-gallery-wordmark {
    top: 8px;
    min-width: 168px;
    height: 48px;
    padding: 0 13px;
    border-radius: 14px;
    font-size: 18px;
  }

  #oc-momente-gallery-wordmark img {
    width: 29px;
    height: 29px;
  }
}

@media (max-height: 720px) and (min-width: 900px) {
  #oc-momente-brand {
    top: 28px;
  }
  #oc-momente-brand img {
    width: 210px;
    margin-bottom: 26px;
  }
  #oc-momente-brand .oc-copy {
    margin-top: 14px;
    line-height: 1.45;
  }
  #oc-momente-brand .oc-seal {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
