/* Unified legacy member pages — presentation only. Existing page JS/IDs stay intact. */

body[data-scope="member"] .member-legacy-reset{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
}

.member-page-head__meta{
  margin-top:12px;
  color:var(--bw-muted,#617083);
  font-size:.86rem;
  line-height:1.55;
}
.member-page-head__meta:empty{display:none}

/* Surveys */
.member-survey-page .umfragen-container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.member-survey-page .umfragen-title,.member-survey-page .umfrage-info{display:none!important}
.member-survey-panel{overflow:hidden}
.member-survey-panel .cpx-frame-box{margin:0!important;padding:10px!important;border:1px solid var(--bw-border,#dfe7ed)!important;border-radius:18px!important;background:rgba(16,34,56,.018)!important;box-shadow:none!important}
.member-survey-panel .cpx-frame-box::before{padding:5px 7px 12px!important}
.member-survey-panel #cpxFrame{display:block;width:100%!important;min-height:720px!important;border:0!important;border-radius:13px!important;background:#fff!important}
html[data-design="future"] .member-survey-panel .cpx-frame-box{background:rgba(255,255,255,.018)!important;border-color:rgba(119,205,239,.13)!important}

/* Payout */
.member-payout-page .page-shell{display:block!important;min-height:0!important}
.member-payout-page .auszahlung-container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.member-payout-page .auszahlung-title{display:none!important}
.member-payout-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin-bottom:20px}
.member-payout-page .auszahlung-guthaben{margin:0!important;min-height:150px;display:flex;flex-direction:column;justify-content:center}
.member-payout-page .auszahlung-btn{align-self:center!important;margin:0!important;min-width:160px!important;min-height:46px!important;padding:0 18px!important;border-radius:999px!important}
.member-payout-page .transaktionsliste-container{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.member-payout-page .member-payout-panel{padding:0!important;overflow:hidden}
.member-payout-page .member-payout-panel .trans-title{padding:22px 24px!important}
.member-payout-page .member-payout-panel .trans-table{margin:0!important}
.member-payout-page .auszahlung-popup{box-shadow:0 28px 80px rgba(2,8,13,.28)!important;border:1px solid var(--bw-border,#dfe7ed)!important;background:var(--bw-surface,#fff)!important}
html[data-design="future"] .member-payout-page .auszahlung-popup{background:#07131f!important;border-color:rgba(119,205,239,.16)!important}

/* Profile */
.member-profile-page .meinedaten-container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.member-profile-page .meinedaten-title{display:none!important}
.member-profile-page .meinedaten-abschnitt{margin:0 0 20px!important;padding:25px!important;border:1px solid var(--bw-border,#dfe7ed)!important;border-radius:22px!important;background:var(--bw-surface,#fff)!important;box-shadow:0 12px 34px rgba(16,34,56,.035)!important}
.member-profile-page .meinedaten-subtitle{margin-bottom:18px!important}
html[data-design="future"] .member-profile-page .meinedaten-abschnitt{background:#091522!important;border-color:rgba(119,205,239,.14)!important;box-shadow:0 18px 44px rgba(0,0,0,.10)!important}

/* Vollmacht / order wizard */
.member-authority-page .member-workspace{width:min(1240px,calc(100% - 68px))}
.member-authority-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:22px;align-items:start}
.member-authority-page .form-container{width:100%!important;max-width:none!important;margin:0!important;padding:clamp(25px,4vw,38px)!important;border-radius:22px!important;box-shadow:0 12px 34px rgba(16,34,56,.035)!important}
.member-authority-page .vollmacht-info{width:100%!important;max-width:none!important;margin:0!important;position:sticky!important;top:24px!important;border-radius:20px!important;box-shadow:0 12px 34px rgba(16,34,56,.025)!important}
.member-authority-page .form-header{font-size:clamp(1.8rem,3.8vw,2.7rem)!important}
.member-authority-page .progress-container{margin-bottom:25px!important}
.member-authority-page #success-message{margin-top:0!important}
html[data-design="future"] .member-authority-page .form-container,
html[data-design="future"] .member-authority-page .vollmacht-info{box-shadow:0 18px 44px rgba(0,0,0,.10)!important}

@media(max-width:980px){
  .member-authority-page .member-workspace{width:min(100% - 32px,900px)}
  .member-authority-layout{grid-template-columns:1fr}
  .member-authority-page .vollmacht-info{position:static!important}
}

@media(max-width:700px){
  .member-payout-overview{grid-template-columns:1fr}
  .member-payout-page .auszahlung-btn{min-height:54px!important;width:100%!important}
  .member-survey-panel{padding:14px!important}
  .member-survey-panel #cpxFrame{min-height:760px!important}
  .member-profile-page .meinedaten-abschnitt{padding:19px!important}
  .member-authority-page .member-workspace{width:calc(100% - 24px)}
  .member-authority-page .form-container{padding:24px 18px!important}
}
